Univer
Univer Sheet
功能
网格线
网格线 0.4.2+
📊 Univer Sheet
import { LocaleType, Univer, UniverInstanceType } from '@univerjs/core' import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula' import { UniverRenderEnginePlugin } from '@univerjs/engine-render' import { UniverUIPlugin } from '@univerjs/ui' import { defaultTheme } from '@univerjs/design' import { UniverDocsPlugin } from '@univerjs/docs' import { UniverDocsUIPlugin } from '@univerjs/docs-ui' import { UniverSheetsPlugin } from '@univerjs/sheets' import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui' import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt' import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula' import { enUS } from './locales' import './style.css' const univer = new Univer({ theme: defaultTheme, locale: LocaleType.EN_US, locales: { [LocaleType.EN_US]: enUS, }, }) univer.registerPlugin(UniverRenderEnginePlugin) univer.registerPlugin(UniverFormulaEnginePlugin) univer.registerPlugin(UniverUIPlugin, { container: 'app', disableAutoFocus: true, }) univer.registerPlugin(UniverDocsPlugin) univer.registerPlugin(UniverDocsUIPlugin) univer.registerPlugin(UniverSheetsPlugin) univer.registerPlugin(UniverSheetsUIPlugin) univer.registerPlugin(UniverSheetsNumfmtPlugin) univer.registerPlugin(UniverSheetsFormulaPlugin) univer.createUnit(UniverInstanceType.UNIVER_SHEET, {})
从 0.4.2 版本开始,你可以切换网格线的显示和隐藏。