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
style(base-sheets): add some comments
Dushusirc357817c4df2
diff --git a/packages/base-sheets/src/Model/ToolBarModel.ts b/packages/base-sheets/src/Model/ToolBarModel.tsindex c566e1db58..612c57d12b 100644--- a/packages/base-sheets/src/Model/ToolBarModel.ts+++ b/packages/base-sheets/src/Model/ToolBarModel.ts@@ -1,6 +1,9 @@import { BaseSelectChildrenProps, BaseSelectProps } from '../View/UI/Common/Select/Select';import { BaseTextButtonProps } from '../View/UI/Common/TextButton/TextButton';+/**+ * TODO: 插件的要去除+ */export interface IShowToolBarConfig {undoRedo?: boolean; // Undo redopaintFormat?: boolean; // Format brushdiff --git a/packages/base-sheets/src/View/UI/SheetContainer/SheetContainer.tsx b/packages/base-sheets/src/View/UI/SheetContainer/SheetContainer.tsxindex aa1a99927b..80da7493ae 100644--- a/packages/base-sheets/src/View/UI/SheetContainer/SheetContainer.tsx+++ b/packages/base-sheets/src/View/UI/SheetContainer/SheetContainer.tsx@@ -68,6 +68,8 @@ export interface ILayout {// Custom configuration toolbar,can be used in conjunction with showToolBar, showToolBarConfig has a higher prioritytoolBarConfig?: IShowToolBarConfig;+ // TODO: 支持 infoBar sheetBar, countBar, rightMenu rightMenuConfig(base-sheets)+/*** 左右或者上下分割content区域*diff --git a/packages/sheets-plugin-clipboard/src/Domain/Paste.ts b/packages/sheets-plugin-clipboard/src/Domain/Paste.tsindex 183c529ea4..5ab5efcfd4 100644--- a/packages/sheets-plugin-clipboard/src/Domain/Paste.ts+++ b/packages/sheets-plugin-clipboard/src/Domain/Paste.ts@@ -22,6 +22,8 @@ export abstract class Paste {manager.requiredObserver<ClipboardEvent>('onSpreadsheetKeyPasteObservable', PLUGIN_NAMES.SPREADSHEET).add((e) => {this.paste(e);});++ // TODO 注册机制 Paste, PasteManager.handle() 匹配 WPSPaste/GoogleSheetPaste/ExcelPaste}getContext() {