|
|
|
|
@ -6,82 +6,82 @@ |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script setup> |
|
|
|
|
import { LocaleType, mergeLocales, Univer, UniverInstanceType } from '@univerjs/core' |
|
|
|
|
import { FUniver } from '@univerjs/core/facade' |
|
|
|
|
import DesignZhCN from '@univerjs/design/locale/zh-CN' |
|
|
|
|
import { UniverDocsPlugin } from '@univerjs/docs' |
|
|
|
|
import { UniverDocsUIPlugin } from '@univerjs/docs-ui' |
|
|
|
|
import DocsUIZhCN from '@univerjs/docs-ui/locale/zh-CN' |
|
|
|
|
import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula' |
|
|
|
|
import { UniverRenderEnginePlugin } from '@univerjs/engine-render' |
|
|
|
|
import { UniverSheetsPlugin } from '@univerjs/sheets' |
|
|
|
|
import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula' |
|
|
|
|
import { UniverSheetsFormulaUIPlugin } from '@univerjs/sheets-formula-ui' |
|
|
|
|
import SheetsFormulaUIZhCN from '@univerjs/sheets-formula-ui/locale/zh-CN' |
|
|
|
|
import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt' |
|
|
|
|
import { UniverSheetsNumfmtUIPlugin } from '@univerjs/sheets-numfmt-ui' |
|
|
|
|
import SheetsNumfmtUIZhCN from '@univerjs/sheets-numfmt-ui/locale/zh-CN' |
|
|
|
|
import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui' |
|
|
|
|
import SheetsUIZhCN from '@univerjs/sheets-ui/locale/zh-CN' |
|
|
|
|
import SheetsZhCN from '@univerjs/sheets/locale/zh-CN' |
|
|
|
|
import { UniverUIPlugin } from '@univerjs/ui' |
|
|
|
|
import UIZhCN from '@univerjs/ui/locale/zh-CN' |
|
|
|
|
import { UniverSheetsPrintPlugin } from '@univerjs-pro/sheets-print' |
|
|
|
|
import SheetsPrintPluginZhCN from '@univerjs-pro/sheets-print/locale/zh-CN' |
|
|
|
|
// <script setup> |
|
|
|
|
// import { LocaleType, mergeLocales, Univer, UniverInstanceType } from '@univerjs/core' |
|
|
|
|
// import { FUniver } from '@univerjs/core/facade' |
|
|
|
|
// import DesignZhCN from '@univerjs/design/locale/zh-CN' |
|
|
|
|
// import { UniverDocsPlugin } from '@univerjs/docs' |
|
|
|
|
// import { UniverDocsUIPlugin } from '@univerjs/docs-ui' |
|
|
|
|
// import DocsUIZhCN from '@univerjs/docs-ui/locale/zh-CN' |
|
|
|
|
// import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula' |
|
|
|
|
// import { UniverRenderEnginePlugin } from '@univerjs/engine-render' |
|
|
|
|
// import { UniverSheetsPlugin } from '@univerjs/sheets' |
|
|
|
|
// import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula' |
|
|
|
|
// import { UniverSheetsFormulaUIPlugin } from '@univerjs/sheets-formula-ui' |
|
|
|
|
// import SheetsFormulaUIZhCN from '@univerjs/sheets-formula-ui/locale/zh-CN' |
|
|
|
|
// import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt' |
|
|
|
|
// import { UniverSheetsNumfmtUIPlugin } from '@univerjs/sheets-numfmt-ui' |
|
|
|
|
// import SheetsNumfmtUIZhCN from '@univerjs/sheets-numfmt-ui/locale/zh-CN' |
|
|
|
|
// import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui' |
|
|
|
|
// import SheetsUIZhCN from '@univerjs/sheets-ui/locale/zh-CN' |
|
|
|
|
// import SheetsZhCN from '@univerjs/sheets/locale/zh-CN' |
|
|
|
|
// import { UniverUIPlugin } from '@univerjs/ui' |
|
|
|
|
// import UIZhCN from '@univerjs/ui/locale/zh-CN' |
|
|
|
|
// import { UniverSheetsPrintPlugin } from '@univerjs-pro/sheets-print' |
|
|
|
|
// import SheetsPrintPluginZhCN from '@univerjs-pro/sheets-print/locale/zh-CN' |
|
|
|
|
|
|
|
|
|
import '@univerjs/design/lib/index.css' |
|
|
|
|
import '@univerjs/ui/lib/index.css' |
|
|
|
|
import '@univerjs/docs-ui/lib/index.css' |
|
|
|
|
import '@univerjs/sheets-ui/lib/index.css' |
|
|
|
|
import '@univerjs/sheets-formula-ui/lib/index.css' |
|
|
|
|
import '@univerjs/sheets-numfmt-ui/lib/index.css' |
|
|
|
|
// import '@univerjs/design/lib/index.css' |
|
|
|
|
// import '@univerjs/ui/lib/index.css' |
|
|
|
|
// import '@univerjs/docs-ui/lib/index.css' |
|
|
|
|
// import '@univerjs/sheets-ui/lib/index.css' |
|
|
|
|
// import '@univerjs/sheets-formula-ui/lib/index.css' |
|
|
|
|
// import '@univerjs/sheets-numfmt-ui/lib/index.css' |
|
|
|
|
|
|
|
|
|
import '@univerjs/engine-formula/facade' |
|
|
|
|
import '@univerjs/ui/facade' |
|
|
|
|
import '@univerjs/docs-ui/facade' |
|
|
|
|
import '@univerjs/sheets/facade' |
|
|
|
|
import '@univerjs/sheets-ui/facade' |
|
|
|
|
import '@univerjs/sheets-formula/facade' |
|
|
|
|
import '@univerjs/sheets-numfmt/facade' |
|
|
|
|
import '@univerjs-pro/sheets-print/lib/index.css' |
|
|
|
|
// import '@univerjs/engine-formula/facade' |
|
|
|
|
// import '@univerjs/ui/facade' |
|
|
|
|
// import '@univerjs/docs-ui/facade' |
|
|
|
|
// import '@univerjs/sheets/facade' |
|
|
|
|
// import '@univerjs/sheets-ui/facade' |
|
|
|
|
// import '@univerjs/sheets-formula/facade' |
|
|
|
|
// import '@univerjs/sheets-numfmt/facade' |
|
|
|
|
// import '@univerjs-pro/sheets-print/lib/index.css' |
|
|
|
|
|
|
|
|
|
const univer = new Univer({ |
|
|
|
|
locale: LocaleType.ZH_CN, |
|
|
|
|
locales: { |
|
|
|
|
[LocaleType.ZH_CN]: mergeLocales( |
|
|
|
|
DesignZhCN, |
|
|
|
|
UIZhCN, |
|
|
|
|
DocsUIZhCN, |
|
|
|
|
SheetsZhCN, |
|
|
|
|
SheetsUIZhCN, |
|
|
|
|
SheetsFormulaUIZhCN, |
|
|
|
|
SheetsNumfmtUIZhCN, |
|
|
|
|
SheetsPrintPluginZhCN, |
|
|
|
|
), |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
// const univer = new Univer({ |
|
|
|
|
// locale: LocaleType.ZH_CN, |
|
|
|
|
// locales: { |
|
|
|
|
// [LocaleType.ZH_CN]: mergeLocales( |
|
|
|
|
// DesignZhCN, |
|
|
|
|
// UIZhCN, |
|
|
|
|
// DocsUIZhCN, |
|
|
|
|
// SheetsZhCN, |
|
|
|
|
// SheetsUIZhCN, |
|
|
|
|
// SheetsFormulaUIZhCN, |
|
|
|
|
// SheetsNumfmtUIZhCN, |
|
|
|
|
// SheetsPrintPluginZhCN, |
|
|
|
|
// ), |
|
|
|
|
// }, |
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
univer.registerPlugin(UniverRenderEnginePlugin) |
|
|
|
|
univer.registerPlugin(UniverFormulaEnginePlugin) |
|
|
|
|
univer.registerPlugin(UniverSheetsPrintPlugin) |
|
|
|
|
// univer.registerPlugin(UniverRenderEnginePlugin) |
|
|
|
|
// univer.registerPlugin(UniverFormulaEnginePlugin) |
|
|
|
|
// univer.registerPlugin(UniverSheetsPrintPlugin) |
|
|
|
|
|
|
|
|
|
univer.registerPlugin(UniverUIPlugin, { |
|
|
|
|
container: 'app', |
|
|
|
|
}) |
|
|
|
|
// univer.registerPlugin(UniverUIPlugin, { |
|
|
|
|
// container: 'app', |
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
univer.registerPlugin(UniverDocsPlugin) |
|
|
|
|
univer.registerPlugin(UniverDocsUIPlugin) |
|
|
|
|
// univer.registerPlugin(UniverDocsPlugin) |
|
|
|
|
// univer.registerPlugin(UniverDocsUIPlugin) |
|
|
|
|
|
|
|
|
|
univer.registerPlugin(UniverSheetsPlugin) |
|
|
|
|
univer.registerPlugin(UniverSheetsUIPlugin) |
|
|
|
|
univer.registerPlugin(UniverSheetsFormulaPlugin) |
|
|
|
|
univer.registerPlugin(UniverSheetsFormulaUIPlugin) |
|
|
|
|
univer.registerPlugin(UniverSheetsNumfmtPlugin) |
|
|
|
|
univer.registerPlugin(UniverSheetsNumfmtUIPlugin) |
|
|
|
|
// univer.registerPlugin(UniverSheetsPlugin) |
|
|
|
|
// univer.registerPlugin(UniverSheetsUIPlugin) |
|
|
|
|
// univer.registerPlugin(UniverSheetsFormulaPlugin) |
|
|
|
|
// univer.registerPlugin(UniverSheetsFormulaUIPlugin) |
|
|
|
|
// univer.registerPlugin(UniverSheetsNumfmtPlugin) |
|
|
|
|
// univer.registerPlugin(UniverSheetsNumfmtUIPlugin) |
|
|
|
|
|
|
|
|
|
univer.createUnit(UniverInstanceType.UNIVER_SHEET, {}) |
|
|
|
|
// univer.createUnit(UniverInstanceType.UNIVER_SHEET, {}) |
|
|
|
|
|
|
|
|
|
const univerAPI = FUniver.newAPI(univer) |
|
|
|
|
// const univerAPI = FUniver.newAPI(univer) |
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
|
// </script> |
|
|
|
|
|