diff --git a/apps/client/package.json b/apps/client/package.json index 521fb2ee52..2fce60a0db 100644 --- a/apps/client/package.json +++ b/apps/client/package.json @@ -35,6 +35,7 @@ "@triliumnext/highlightjs": "workspace:*", "@triliumnext/share-theme": "workspace:*", "@triliumnext/split.js": "workspace:*", + "@univerjs/preset-sheets-conditional-formatting": "0.16.1", "@univerjs/preset-sheets-core": "0.16.1", "@univerjs/preset-sheets-data-validation": "0.16.1", "@univerjs/preset-sheets-filter": "0.16.1", diff --git a/apps/client/src/widgets/type_widgets/spreadsheet/Spreadsheet.tsx b/apps/client/src/widgets/type_widgets/spreadsheet/Spreadsheet.tsx index 4f93712b91..157d4479ec 100644 --- a/apps/client/src/widgets/type_widgets/spreadsheet/Spreadsheet.tsx +++ b/apps/client/src/widgets/type_widgets/spreadsheet/Spreadsheet.tsx @@ -1,7 +1,10 @@ import "@univerjs/preset-sheets-core/lib/index.css"; import "./Spreadsheet.css"; import '@univerjs/preset-sheets-sort/lib/index.css'; +import '@univerjs/preset-sheets-conditional-formatting/lib/index.css'; +import { UniverSheetsConditionalFormattingPreset } from '@univerjs/preset-sheets-conditional-formatting'; +import UniverPresetSheetsConditionalFormattingEnUS from '@univerjs/preset-sheets-conditional-formatting/locales/en-US'; import { UniverSheetsCorePreset } from '@univerjs/preset-sheets-core'; import sheetsCoreEnUS from '@univerjs/preset-sheets-core/locales/en-US'; import { UniverSheetsDataValidationPreset } from '@univerjs/preset-sheets-data-validation'; @@ -62,6 +65,7 @@ function useInitializeSpreadsheet(containerRef: MutableRef