@univerjs/preset-docs-core
此 API 頁面目前提供英文內容。程式碼簽名與識別符不隨介面語言變更。
TypeScript
import { UniverDocsCorePreset } from '@univerjs/preset-docs-core'const preset = UniverDocsCorePreset()IUniverDocsCorePresetConfig
| Option | Type | Behavior |
|---|---|---|
container, header, footer, toolbar, ribbonType, contextMenu, disableAutoFocus | UI options | Forwarded to UniverUIPlugin; see UI configuration. |
menu | MenuConfig | Menu item overrides, sibling order for Ribbon tabs/groups/items, and gridLayout for the grid Ribbon. Use Docs menu IDs, such as doc.command.set-inline-format-bold. See menu configuration and updateMenuConfig() for runtime updates. |
collaboration | true | Declared by the type but not consumed by this preset. Use top-level createUniver({ collaboration: true, ... }) with the collaboration integration. |
toc | boolean | Forwarded to UniverDocsUIPlugin. Omitted: enabled in Modern documents, disabled in Traditional documents. Explicit booleans override the default. See outline configuration. |
你覺得這篇文檔如何?