Referencia de API

@univerjs-pro/sheets-exchange-client

Esta página de API está disponible actualmente en inglés. Las firmas y los identificadores no cambian con el idioma.

Spreadsheet import and export client integration for Web SDK.

TypeScript
import { UniverSheetsExchangeClientPlugin } from '@univerjs-pro/sheets-exchange-client'univer.registerPlugin(UniverSheetsExchangeClientPlugin)

Entry Points

  • Facade: @univerjs-pro/sheets-exchange-client/facade

Facade API

TypeScript
import '@univerjs-pro/sheets-exchange-client/facade'importSheetToUnitIdAsync(file: File | string): Promise<string | undefined>importSheetToSnapshotAsync(file: File | string): Promise<IWorkbookData | undefined>exportSheetByUnitIdAsync(unitId: string, format?: ExchangeFormat, sheetId?: string): Promise<File | undefined>exportSheetBySnapshotAsync(snapshot: IWorkbookData, format?: ExchangeFormat, sheetId?: string): Promise<File | undefined>transformSnapshotJsonToWorkbookDataAsync(json: ISnapshotBlockJsonResponse): Promise<IWorkbookData>transformWorkbookDataToSnapshotJsonAsync(workbookData: IWorkbookData): Promise<ISnapshotBlockJson>

IUniverSheetsExchangeClientConfig

TypeScript
export interface IUniverSheetsExchangeClientConfig {  minSheetRowCount?: number  minSheetColumnCount?: number  disableCellImageConversion?: boolean}

Imported worksheets have at least minSheetRowCount rows and minSheetColumnCount columns (both default to 1). disableCellImageConversion defaults to true; exporting URL-backed cell images uses links instead of asking the server to download each image.

¿Cómo es esta guía?

© 2026 DreamNum Co., Ltd.