API 参考

@univerjs-pro/sheets-exchange-client

本 API 页面目前提供英文正文。代码签名与标识符不随界面语言变化。

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}

你觉得这篇文档如何?

© 2026 DreamNum Co., Ltd.