Skip to content

Commit b498484

Browse files
committed
readd css
1 parent 7cb172a commit b498484

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/spreadsheet.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ import type {
1616
SetRangeValuesMutation,
1717
} from "@univerjs/sheets";
1818

19+
import "@univerjs/design/lib/index.css";
20+
import "@univerjs/ui/lib/index.css";
21+
import "@univerjs/docs-ui/lib/index.css";
22+
import "@univerjs/sheets-ui/lib/index.css";
23+
import "@univerjs/sheets-formula/lib/index.css";
24+
1925
const univer_core = import("@univerjs/core");
2026
const design = import("@univerjs/design");
2127
const render_engine = import("@univerjs/engine-render");
@@ -27,12 +33,15 @@ const sheets_numfmt = import("@univerjs/sheets-numfmt");
2733
const sheets_formula = import("@univerjs/sheets-formula");
2834
const facade = import("@univerjs/facade");
2935
const zod = import("zod");
36+
const docs_plugin = import("@univerjs/docs");
37+
const docs_ui_plugin = import("@univerjs/docs-ui");
3038

3139
const DesignEnUS = import('node_modules/@univerjs/design/lib/locale/en-US.json');
3240
const SheetsEnUS = import('node_modules/@univerjs/sheets/lib/locale/en-US.json');
3341
const SheetsUIEnUS = import('node_modules/@univerjs/sheets-ui/lib/locale/en-US.json');
3442
const SheetsFormulaEnUS = import('node_modules/@univerjs/sheets-formula/lib/locale/en-US.json');
3543
const UIEnUS = import('node_modules/@univerjs/ui/lib/locale/en-US.json');
44+
const DocsUIEnUS = import('node_modules/@univerjs/docs-ui/lib/locale/en-US.json');
3645

3746
const NUMBER_CELL_TYPE: typeof CellValueType.NUMBER = 2;
3847
const UNIVER_SHEET_TYPE: typeof UniverInstanceType.UNIVER_SHEET = 2;
@@ -79,7 +88,8 @@ async function setupUniver(container: HTMLElement) {
7988
await SheetsEnUS,
8089
await SheetsUIEnUS,
8190
await SheetsFormulaEnUS,
82-
await UIEnUS
91+
await UIEnUS,
92+
await DocsUIEnUS
8393
),
8494
},
8595
});
@@ -88,6 +98,8 @@ async function setupUniver(container: HTMLElement) {
8898
univer.registerPlugin((await ui_plugin).UniverUIPlugin, { container });
8999
univer.registerPlugin((await sheets_plugin).UniverSheetsPlugin);
90100
univer.registerPlugin((await sheets_ui_plugin).UniverSheetsUIPlugin);
101+
univer.registerPlugin((await docs_plugin).UniverDocsPlugin);
102+
univer.registerPlugin((await docs_ui_plugin).UniverDocsUIPlugin);
91103

92104
return univer;
93105
}

0 commit comments

Comments
 (0)