节点:注释
This commit is contained in:
parent
5c49d9ff8e
commit
15685f5850
@ -117,7 +117,7 @@ import '@univerjs/design/lib/index.css'
|
|||||||
import '@univerjs/ui/lib/index.css'
|
import '@univerjs/ui/lib/index.css'
|
||||||
import '@univerjs/docs-ui/lib/index.css'
|
import '@univerjs/docs-ui/lib/index.css'
|
||||||
import '@univerjs/sheets-ui/lib/index.css'
|
import '@univerjs/sheets-ui/lib/index.css'
|
||||||
import '@univerjs/sheets-formula-ui/lib/index.css'
|
// import '@univerjs/sheets-formula-ui/lib/index.css'
|
||||||
|
|
||||||
import { Univer, UniverInstanceType, Tools, Workbook, LocaleType, IWorkbookData } from '@univerjs/core'
|
import { Univer, UniverInstanceType, Tools, Workbook, LocaleType, IWorkbookData } from '@univerjs/core'
|
||||||
import { defaultTheme } from '@univerjs/design'
|
import { defaultTheme } from '@univerjs/design'
|
||||||
@ -132,7 +132,7 @@ import { UniverDocsUIPlugin } from '@univerjs/docs-ui'
|
|||||||
|
|
||||||
import { UniverSheetsPlugin } from '@univerjs/sheets'
|
import { UniverSheetsPlugin } from '@univerjs/sheets'
|
||||||
import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula'
|
import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula'
|
||||||
import { UniverSheetsFormulaUIPlugin } from '@univerjs/sheets-formula-ui'
|
// import { UniverSheetsFormulaUIPlugin } from '@univerjs/sheets-formula-ui'
|
||||||
import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui'
|
import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui'
|
||||||
|
|
||||||
import DesignZhCN from '@univerjs/design/locale/zh-CN'
|
import DesignZhCN from '@univerjs/design/locale/zh-CN'
|
||||||
@ -140,7 +140,7 @@ import UIZhCN from '@univerjs/ui/locale/zh-CN'
|
|||||||
import DocsUIZhCN from '@univerjs/docs-ui/locale/zh-CN'
|
import DocsUIZhCN from '@univerjs/docs-ui/locale/zh-CN'
|
||||||
import SheetsZhCN from '@univerjs/sheets/locale/zh-CN'
|
import SheetsZhCN from '@univerjs/sheets/locale/zh-CN'
|
||||||
import SheetsUIZhCN from '@univerjs/sheets-ui/locale/zh-CN'
|
import SheetsUIZhCN from '@univerjs/sheets-ui/locale/zh-CN'
|
||||||
import SheetsFormulaUIZhCN from '@univerjs/sheets-formula-ui/locale/zh-CN'
|
// import SheetsFormulaUIZhCN from '@univerjs/sheets-formula-ui/locale/zh-CN'
|
||||||
import { FUniver } from '@univerjs/facade'
|
import { FUniver } from '@univerjs/facade'
|
||||||
|
|
||||||
import { excelDefaultConfig, createWookbookData, createUpLoadExcelData, createSheetData, setExcelNameToLinkId } from './utils'
|
import { excelDefaultConfig, createWookbookData, createUpLoadExcelData, createSheetData, setExcelNameToLinkId } from './utils'
|
||||||
@ -194,7 +194,8 @@ const initExcel = (data = {}) => {
|
|||||||
theme: defaultTheme,
|
theme: defaultTheme,
|
||||||
locale: LocaleType.ZH_CN,
|
locale: LocaleType.ZH_CN,
|
||||||
locales: {
|
locales: {
|
||||||
[LocaleType.ZH_CN]: Tools.deepMerge(SheetsZhCN, DocsUIZhCN, SheetsUIZhCN,SheetsFormulaUIZhCN, UIZhCN, DesignZhCN),
|
// [LocaleType.ZH_CN]: Tools.deepMerge(SheetsZhCN, DocsUIZhCN, SheetsUIZhCN,SheetsFormulaUIZhCN, UIZhCN, DesignZhCN),
|
||||||
|
[LocaleType.ZH_CN]: Tools.deepMerge(SheetsZhCN, DocsUIZhCN, SheetsUIZhCN, UIZhCN, DesignZhCN),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
univerRef.value = univer
|
univerRef.value = univer
|
||||||
@ -216,7 +217,7 @@ const initExcel = (data = {}) => {
|
|||||||
univer.registerPlugin(UniverSheetsPlugin)
|
univer.registerPlugin(UniverSheetsPlugin)
|
||||||
univer.registerPlugin(UniverSheetsUIPlugin)
|
univer.registerPlugin(UniverSheetsUIPlugin)
|
||||||
univer.registerPlugin(UniverSheetsFormulaPlugin)
|
univer.registerPlugin(UniverSheetsFormulaPlugin)
|
||||||
univer.registerPlugin(UniverSheetsFormulaUIPlugin)
|
// univer.registerPlugin(UniverSheetsFormulaUIPlugin)
|
||||||
|
|
||||||
// create workbook instance
|
// create workbook instance
|
||||||
workbook.value = univer.createUnit<IWorkbookData, Workbook>(UniverInstanceType.UNIVER_SHEET, data)
|
workbook.value = univer.createUnit<IWorkbookData, Workbook>(UniverInstanceType.UNIVER_SHEET, data)
|
||||||
|
Loading…
Reference in New Issue
Block a user