Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore(collaboration): add set selection value
Dushusirb5f563946e96
diff --cc cli/src/templates/base/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/cli/src/templates/base/tsconfig.json+++ b/cli/src/templates/base/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc cli/src/templates/common-plugin/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/cli/src/templates/common-plugin/tsconfig.json+++ b/cli/src/templates/common-plugin/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc cli/src/templates/docs-plugin/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/cli/src/templates/docs-plugin/tsconfig.json+++ b/cli/src/templates/docs-plugin/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc cli/src/templates/sheets-plugin/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/cli/src/templates/sheets-plugin/tsconfig.json+++ b/cli/src/templates/sheets-plugin/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc cli/src/templates/slides-plugin/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/cli/src/templates/slides-plugin/tsconfig.json+++ b/cli/src/templates/slides-plugin/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc examples/univer-doc-ts/src/main.tsxindex d7fedcdce0,80ca0866c1..9a8c49cd17--- a/examples/univer-doc-ts/src/main.tsx+++ b/examples/univer-doc-ts/src/main.tsx@@@ -27,4 -28,27 +27,4 @@@ univer.install},},})- );+ );--// document.querySelector('#univerdoc').style.width = '100%';--// setTimeout(() => {-// univerdoc._context-// .getPluginManager()-// .getRequirePluginByName('document').getDocsView().scrollToCenter();-// // .getRequirePluginByName('document').getDocsView().getDocs().calculatePagePosition();-// }, 500);--// univerdoc.installPlugin(new DocPlugin());--window.addEventListener(- 'resize',- function (event) {- console.log('resize doc');- const docPlugin = univerdoc.context.getPluginManager().getRequirePluginByName('document') as DocPlugin;- const docsView = docPlugin.getDocsView() as DocsView;- docsView.scrollToCenter();- // .getRequirePluginByName('document').getDocsView().getDocs().calculatePagePosition();- },- true-);diff --cc examples/univer-doc-ts/tsconfig.jsonindex ba73bc3562,ba73bc3562..85bc6506d2--- a/examples/univer-doc-ts/tsconfig.json+++ b/examples/univer-doc-ts/tsconfig.json@@@ -25,7 -25,7 +25,7 @@@"jsxImportSource": "preact","experimentalDecorators": true,"emitDecoratorMetadata": true,-- "suppressImplicitAnyIndexErrors": true,++"strictPropertyInitialization": false,},"include": [diff --cc examples/univer-preact-ts/src/main.tsxindex a0421b4050,a0421b4050..6331916034--- a/examples/univer-preact-ts/src/main.tsx+++ b/examples/univer-preact-ts/src/main.tsx@@@ -63,7 -63,7 +63,8 @@@ const defaultWorkbookData = Tools.deepC--const ipAddress = '47.100.177.253:8500'++const ipAddress = 'localhost:8500'++// const ipAddress = '47.100.177.253:8500'const config = {"type":"sheet","template":"DEMO1"}insertButton()diff --cc examples/univer-preact-ts/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/examples/univer-preact-ts/tsconfig.json+++ b/examples/univer-preact-ts/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc examples/univer-sheet-ts/tsconfig.jsonindex 21492de3a6,21492de3a6..3b486529f8--- a/examples/univer-sheet-ts/tsconfig.json+++ b/examples/univer-sheet-ts/tsconfig.json@@@ -25,7 -25,7 +25,7 @@@"jsxImportSource": "preact","experimentalDecorators": true,"emitDecoratorMetadata": true,-- "suppressImplicitAnyIndexErrors": true,++"strictPropertyInitialization": false,},"include": [diff --cc examples/univer-slide-ts/tsconfig.jsonindex ba73bc3562,ba73bc3562..85bc6506d2--- a/examples/univer-slide-ts/tsconfig.json+++ b/examples/univer-slide-ts/tsconfig.json@@@ -25,7 -25,7 +25,7 @@@"jsxImportSource": "preact","experimentalDecorators": true,"emitDecoratorMetadata": true,-- "suppressImplicitAnyIndexErrors": true,++"strictPropertyInitialization": false,},"include": [diff --cc examples/univer-vanilla-ts/tsconfig.jsonindex ba73bc3562,ba73bc3562..85bc6506d2--- a/examples/univer-vanilla-ts/tsconfig.json+++ b/examples/univer-vanilla-ts/tsconfig.json@@@ -25,7 -25,7 +25,7 @@@"jsxImportSource": "preact","experimentalDecorators": true,"emitDecoratorMetadata": true,-- "suppressImplicitAnyIndexErrors": true,++"strictPropertyInitialization": false,},"include": [diff --cc packages/base-docs/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/base-docs/tsconfig.json+++ b/packages/base-docs/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/base-formula-engine/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/base-formula-engine/tsconfig.json+++ b/packages/base-formula-engine/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/base-numfmt-engine/tsconfig.jsonindex f9f2840cfe,f9f2840cfe..6923af48df--- a/packages/base-numfmt-engine/tsconfig.json+++ b/packages/base-numfmt-engine/tsconfig.json@@@ -19,7 -19,7 +19,7 @@@"baseUrl": "./","skipLibCheck": true,"esModuleInterop": true,-- "suppressImplicitAnyIndexErrors": true,++"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/base-render/tsconfig.jsonindex 19b7b8a41e,19b7b8a41e..d5bf531fae--- a/packages/base-render/tsconfig.json+++ b/packages/base-render/tsconfig.json@@@ -22,8 -22,8 +22,7 @@@// "@*": ["src/*"]// },"skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/base-sheets/src/Controller/SpreadsheetController.tsindex c37f6c1112,c37f6c1112..55c37e2894--- a/packages/base-sheets/src/Controller/SpreadsheetController.ts+++ b/packages/base-sheets/src/Controller/SpreadsheetController.ts@@@ -1,1 -1,1 +1,1 @@@--export class SpreadsheetAction {}++export class SpreadsheetController {}diff --cc packages/base-sheets/src/Model/Action/SpreadsheetAction.tsindex 3a0df63bcd,3a0df63bcd..0000000000deleted file mode 100644,100644--- a/packages/base-sheets/src/Model/Action/SpreadsheetAction.ts+++ /dev/null@@@ -1,4 -1,4 +1,0 @@@--export class SpreadsheetAction {-- // TODO ...-- static NAME = 'SpreadsheetAction';--}diff --cc packages/base-sheets/src/Model/Action/index.tsindex 771130f321,771130f321..55a3824ed7--- a/packages/base-sheets/src/Model/Action/index.ts+++ b/packages/base-sheets/src/Model/Action/index.ts@@@ -1,3 -1,3 +1,3 @@@// @index('./*.ts', f => `export * from '${f.path}'`)--export * from './SpreadsheetAction';++export * from './SetSelectionValueAction';// @endindexdiff --cc packages/base-sheets/src/Model/index.tsindex 22bdaa1cdc,22bdaa1cdc..532af94f94--- a/packages/base-sheets/src/Model/index.ts+++ b/packages/base-sheets/src/Model/index.ts@@@ -1,4 -1,4 +1,5 @@@// @index('./*.ts', f => `export * from '${f.path}'`)export * from './AntLineModel';export * from './SelectionModel';++export * from './Action';// @endindexdiff --cc packages/base-sheets/tsconfig.jsonindex e49f9058bc,e49f9058bc..fef4c5361d--- a/packages/base-sheets/tsconfig.json+++ b/packages/base-sheets/tsconfig.json@@@ -24,8 -24,8 +24,7 @@@]},"skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/base-slides/tsconfig.jsonindex 96edb5d074,96edb5d074..c591a919b8--- a/packages/base-slides/tsconfig.json+++ b/packages/base-slides/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/base-ui/tsconfig.jsonindex 7adb8206e7,7adb8206e7..62520bc381--- a/packages/base-ui/tsconfig.json+++ b/packages/base-ui/tsconfig.json@@@ -20,8 -20,8 +20,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/common-plugin-collaboration/src/Controller/CollaborationController.tsindex 56b59b450b,56b59b450b..fb7bb435c3--- a/packages/common-plugin-collaboration/src/Controller/CollaborationController.ts+++ b/packages/common-plugin-collaboration/src/Controller/CollaborationController.ts@@@ -1,4 -1,4 +1,4 @@@--import { SheetPlugin } from '@univerjs/base-sheets';++import { SheetPlugin, SetSelectionValueAction } from '@univerjs/base-sheets';import {ActionOperation,ACTION_NAMES,@@@ -13,12 -13,12 +13,13 @@@PLUGIN_NAMES,SheetActionBase,SheetContext,++ IActionData,} from '@univerjs/core';import { CollaborationPlugin } from '../CollaborationPlugin';interface MessageConfigType {univerId: string;-- actionData: ISetRangeDataActionData;++ actionData: IActionData;}export class CollaborationController {@@@ -30,6 -30,6 +31,8 @@@private _sheetPlugin: SheetPlugin;++ private _collaborationActionList: string[];++constructor(plugin: CollaborationPlugin) {this._plugin = plugin;this._sheetPlugin = plugin.getUniver().getCurrentUniverSheetInstance().context.getPluginManager().getRequirePluginByName<SheetPlugin>(PLUGIN_NAMES.SPREADSHEET);@@@ -62,6 -62,6 +65,9 @@@case ACTION_NAMES.SET_RANGE_DATA_ACTION:this.refreshRange(message);break;++ case SetSelectionValueAction.NAME:++ this.highlightCell(message);++ break;default:break;@@@ -121,7 -121,7 +127,7 @@@refreshRange(config: MessageConfigType) {const { actionData } = config;-- const { sheetId, cellValue } = actionData;++ const { sheetId, cellValue } = actionData as ISetRangeDataActionData;const context = this._sheetPlugin.getContext();const _commandManager = context.getCommandManager();@@@ -146,6 -146,6 +152,34 @@@_commandManager.invoke(command);}++ highlightCell(config: MessageConfigType) {++ console.info('收到高亮消息===')++ // const { actionData } = config;++ // const { sheetId, cellValue } = actionData as ISetRangeDataActionData;++++ // const context = this._sheetPlugin.getContext();++ // const _commandManager = context.getCommandManager();++ // const worksheet = this._sheetPlugin.getWorkbook().getSheetBySheetId(sheetId);++++ // if (!worksheet) return;++++ // console.log('收到协同更新==范围:', '数据:', cellValue);++++ // let setValue: ISetRangeDataActionData = {++ // sheetId: worksheet.getSheetId(),++ // actionName: ACTION_NAMES.SET_RANGE_DATA_ACTION,++ // cellValue,++ // };++ // setValue = ActionOperation.make<ISetRangeDataActionData>(setValue).removeCollaboration().getAction();++ // const command = new Command(++ // {++ // WorkBookUnit: context.getWorkBook(),++ // },++ // setValue++ // );++ // _commandManager.invoke(command);++ }++refresh(config: IKeyValue) {const context = this._plugin.getContext() as SheetContext;context.refreshWorkbook(config);@@@ -174,6 -174,6 +208,8 @@@return;}++ this._collaborationActionList = [ACTION_NAMES.SET_RANGE_DATA_ACTION, SetSelectionValueAction.NAME];++this._initSocket(url);this._initObserver();}@@@ -214,7 -214,7 +250,7 @@@if (!ActionOperation.hasCollaboration(actionData)) return;const actionName = actionData.actionName;-- if (actionName !== ACTION_NAMES.SET_RANGE_DATA_ACTION) return;++ if (!this._collaborationActionList.includes(actionName)) return;const context = this._sheetPlugin.getContext();@@@ -233,10 -233,10 +269,10 @@@}timer = setTimeout(() => {-- const currentEditRangeValue = this._sheetPlugin.getCellEditorController().getCurrentEditRangeData();++ // const currentEditRangeValue = this._sheetPlugin.getCellEditorController().getCurrentEditRangeData();const data: MessageConfigType = {univerId: currentUnitId,-- actionData: action.getDoActionData() as ISetRangeDataActionData,++ actionData: action.getDoActionData(),};let stringData = JSON.stringify(data);diff --cc packages/common-plugin-collaboration/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/common-plugin-collaboration/tsconfig.json+++ b/packages/common-plugin-collaboration/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/common-plugin-data/tsconfig.jsonindex 847d073f6d,847d073f6d..0314d846bc--- a/packages/common-plugin-data/tsconfig.json+++ b/packages/common-plugin-data/tsconfig.json@@@ -21,7 -21,7 +21,7 @@@"esModuleInterop": true, // auto allowSyntheticDefaultImports true"jsx": "preserve","experimentalDecorators": true,-- "suppressImplicitAnyIndexErrors": true,++"strictPropertyInitialization": false,"types": ["jest", "node", "@types/jest"]},diff --cc packages/core/tsconfig.jsonindex 43fada229b,43fada229b..4043b8bf9f--- a/packages/core/tsconfig.json+++ b/packages/core/tsconfig.json@@@ -22,7 -22,7 +22,7 @@@"jsx": "preserve","experimentalDecorators": true,"emitDecoratorMetadata": true,-- "suppressImplicitAnyIndexErrors": true,++"strictPropertyInitialization": false,"types": ["jest", "node", "@types/jest"]},diff --cc packages/sheets-plugin-alternating-colors/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-alternating-colors/tsconfig.json+++ b/packages/sheets-plugin-alternating-colors/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-clipboard/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-clipboard/tsconfig.json+++ b/packages/sheets-plugin-clipboard/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-comment/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-comment/tsconfig.json+++ b/packages/sheets-plugin-comment/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-conditional-format/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-conditional-format/tsconfig.json+++ b/packages/sheets-plugin-conditional-format/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-data-validation/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-data-validation/tsconfig.json+++ b/packages/sheets-plugin-data-validation/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-filter/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-filter/tsconfig.json+++ b/packages/sheets-plugin-filter/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-find/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-find/tsconfig.json+++ b/packages/sheets-plugin-find/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-formula/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-formula/tsconfig.json+++ b/packages/sheets-plugin-formula/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-freeze/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-freeze/tsconfig.json+++ b/packages/sheets-plugin-freeze/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-group/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-group/tsconfig.json+++ b/packages/sheets-plugin-group/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-image/tsconfig.jsonindex cd2560e992,cd2560e992..1cb9948847--- a/packages/sheets-plugin-image/tsconfig.json+++ b/packages/sheets-plugin-image/tsconfig.json@@@ -20,7 -20,7 +20,7 @@@"baseUrl": "./","skipLibCheck": true,"esModuleInterop": true,-- "suppressImplicitAnyIndexErrors": true,++"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-import-xlsx/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-import-xlsx/tsconfig.json+++ b/packages/sheets-plugin-import-xlsx/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-link/src/main.tsxindex 06d0bf2bd8,06d0bf2bd8..43c5f65a33--- a/packages/sheets-plugin-link/src/main.tsx+++ b/packages/sheets-plugin-link/src/main.tsx@@@ -1,13 -1,13 +1,13 @@@import { UniverSheet } from '@univerjs/core';import { RenderEngine } from '@univerjs/base-render';import { DEFAULT_WORKBOOK_DATA } from '@univerjs/common-plugin-data';--import { SheetPlugin } from '@univerjs/base-sheets';++// import { SheetPlugin } from '@univerjs/base-sheets';const uiDefaultConfigUp = {container: 'universheet-demo-up',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);univerSheetUp.installPlugin(new RenderEngine());--univerSheetUp.installPlugin(new UniverComponentSheet());--univerSheetUp.installPlugin(new SheetPlugin(uiDefaultConfigUp));++// univerSheetUp.installPlugin(new UniverComponentSheet());++// univerSheetUp.installPlugin(new SheetPlugin(uiDefaultConfigUp));// univerSheetUp.installPlugin(new LinkPlugin());diff --cc packages/sheets-plugin-link/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-link/tsconfig.json+++ b/packages/sheets-plugin-link/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-numfmt/tsconfig.jsonindex cd2560e992,cd2560e992..1cb9948847--- a/packages/sheets-plugin-numfmt/tsconfig.json+++ b/packages/sheets-plugin-numfmt/tsconfig.json@@@ -20,7 -20,7 +20,7 @@@"baseUrl": "./","skipLibCheck": true,"esModuleInterop": true,-- "suppressImplicitAnyIndexErrors": true,++"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-pivot-table/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-pivot-table/tsconfig.json+++ b/packages/sheets-plugin-pivot-table/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-print/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-print/tsconfig.json+++ b/packages/sheets-plugin-print/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-protection/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-protection/tsconfig.json+++ b/packages/sheets-plugin-protection/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-screenshot/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-screenshot/tsconfig.json+++ b/packages/sheets-plugin-screenshot/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-sort/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-sort/tsconfig.json+++ b/packages/sheets-plugin-sort/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/sheets-plugin-split-column/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/sheets-plugin-split-column/tsconfig.json+++ b/packages/sheets-plugin-split-column/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/ui-plugin-docs/src/DocUIPlugin.tsindex 159f0717c8,159f0717c8..9e538e5458--- a/packages/ui-plugin-docs/src/DocUIPlugin.ts+++ b/packages/ui-plugin-docs/src/DocUIPlugin.ts@@@ -39,10 -39,10 +39,6 @@@ export class DocUIPlugin extends Pluginthis._componentManager = new ComponentManager();this._appUIController = new AppUIController(this);---- // this.UIDidMount(() => {-- // this.initRender();-- // });}getConfig() {diff --cc packages/ui-plugin-docs/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/ui-plugin-docs/tsconfig.json+++ b/packages/ui-plugin-docs/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/ui-plugin-sheets/tsconfig.jsonindex 3d06479134,3d06479134..1ab164c8fb--- a/packages/ui-plugin-sheets/tsconfig.json+++ b/packages/ui-plugin-sheets/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc packages/ui-plugin-slides/tsconfig.jsonindex 7d1f34cc0a,7d1f34cc0a..89460c7a67--- a/packages/ui-plugin-slides/tsconfig.json+++ b/packages/ui-plugin-slides/tsconfig.json@@@ -19,8 -19,8 +19,7 @@@"allowJs": true,"baseUrl": "./","skipLibCheck": true,-- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru-- "suppressImplicitAnyIndexErrors": true,++ "esModuleInterop": true, // auto allowSyntheticDefaultImports true"experimentalDecorators": true,"jsx": "react-jsx","jsxImportSource": "preact",diff --cc tsconfig.jsonindex 59cb9d44d4,59cb9d44d4..502e2a6739--- a/tsconfig.json+++ b/tsconfig.json@@@ -1,5 -1,5 +1,6 @@@{"include": ["packages/*/src",++ "examples/*/src",]}