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.
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.