API 參考

@univerjs-pro/edit-history-ui

此 API 頁面目前提供英文內容。程式碼簽名與識別符不隨介面語言變更。

Shared version-history viewer workflow for Web SDK products.

TypeScript
import { UniverEditHistoryUIPlugin } from '@univerjs-pro/edit-history-ui'import enUS from '@univerjs-pro/edit-history-ui/locale/en-US'import '@univerjs-pro/edit-history-ui/lib/index.css'univer.registerPlugin(UniverEditHistoryUIPlugin)

Product UI packages configure this shared viewer. Direct integrations can provide viewerMode, a history-session descriptor, canRestore, onClose, and onRestore.

Entry Points

  • Locale: @univerjs-pro/edit-history-ui/locale/*
  • Styles: @univerjs-pro/edit-history-ui/lib/index.css

你覺得這篇文檔如何?

© 2026 DreamNum Co., Ltd.