@univerjs-pro/sheets-exchange-client
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 - Locale:
@univerjs-pro/sheets-exchange-client/locale/*
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
import type { MenuConfig } from '@univerjs/ui'export interface IUniverSheetsExchangeClientConfig { menu?: MenuConfig}How is this guide?