API 參考

@univerjs/preset-sheets-core

此 API 頁面目前提供英文內容。程式碼簽名與識別符不隨介面語言變更。
TypeScript
import { UniverSheetsCorePreset } from '@univerjs/preset-sheets-core'const preset = UniverSheetsCorePreset()

IUniverSheetsCorePresetConfig

OptionTypeBehavior
containerstring or HTMLElementUI mount container.
header, toolbar, ribbonType, contextMenu, disableAutoFocus, customFontFamilyUI optionsForwarded to UniverUIPlugin; see UI configuration.
menuMenuConfigMenu item overrides, sibling order for Ribbon tabs/groups/items, and gridLayout for the grid Ribbon. See menu configuration and updateMenuConfig() for runtime updates.
formulaBar, footerSheets UI optionsForwarded to UniverSheetsUIPlugin; see Sheets UI configuration.
disableTextFormatAlert, disableTextFormatMarkbooleanControl the warning and marker for text-formatted numeric cells.
docsIUniverDocsPresetConfigThe preset forwards docs.hasScroll to the Docs model plugin.
sheetsIUniverSheetsPresetConfigRow/column style priority, merged-cell auto height, freeze synchronization, maximum auto-height count, clipboard and scrollbar options, protected-range display/user selection, and forced-string warnings. Set sheets.allowArrowKeyWrapOnSheetBoundary to false to stop arrow-key navigation at worksheet edges (default: true). Set sheets.textLineGap to add a finite, non-negative pixel gap between lines of cell text (default: 0); see text line spacing.
formulaIUniverFormulaConfigCustom functions, function descriptions, initial formula computation and function screen tips.
workerURLIUniverRPCMainThreadConfig['workerURL']Enables the browser RPC worker for formula computation. Optional when calling the preset function.

你覺得這篇文檔如何?

© 2026 DreamNum Co., Ltd.