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
confict(base-component):import error
Dushusire79a0b70f840
diff --cc packages/base-component/src/Controller/ToolbarController.tsindex 02a5e1c5c1,0223785f05..f877034da6--- a/packages/base-component/src/Controller/ToolbarController.ts+++ b/packages/base-component/src/Controller/ToolbarController.ts@@@ -1,6 -1,8 +1,8 @@@-import { ToolBarObserver } from '@univerjs/core';+import { UIObserver } from '@univerjs/core';+ import { BaseSelectChildrenProps, BaseSelectProps } from '@univerjs/style-univer/src/Components/Select';+ import { BaseTextButtonProps } from '@univerjs/style-univer/src/Components/TextButton/TextButton';import { BaseComponentPlugin } from '../BaseComponentPlugin';- import { IToolBarItemProps, SheetToolBarConfig, ToolBarConfig } from '../Basics/Interfaces/ToolbarConfig/BaseToolBarConfig';+ import { SheetToolBarConfig, ToolBarConfig } from '../Basics/Interfaces/ComponentConfig/ToolBarConfig';import { ToolBar } from '../UI/ToolBar';import { resetDataLabel } from '../Utils';diff --cc packages/base-component/src/Controller/UniverContainerController.tsindex a9eef472f5,63b7d80720..72ad916a79--- a/packages/base-component/src/Controller/UniverContainerController.ts+++ b/packages/base-component/src/Controller/UniverContainerController.ts@@@ -1,3 -1,4 +1,4 @@@-import { InfoBarController, RightMenuController, ToolBarController } from '.';++import { InfoBarController, RightMenuController } from '.';import { BaseComponentRender, BaseComponentSheet } from '../BaseComponent';import { BaseComponentPlugin } from '../BaseComponentPlugin';import { UniverConfig } from '../Basics';@@@ -5,8 -6,8 +6,10 @@@ import { UniverSheetConfig } from '../Bimport { LocaleType } from '../Enum';import { UI } from '../UI';import { UniverContainer } from '../UI/UniverContainer';+import { CellEditorController } from './CellEditorController';+import { ToolBarController } from './ToolbarController';+ import { CountBarController } from './CountBarController';+ import { SheetBarControl } from './SheetBarController';export class UniverContainerController {private _plugin: BaseComponentPlugin;@@@ -17,7 -18,13 +20,15 @@@private _toolbarController: ToolBarController;+ private _cellEditorController: CellEditorController;+++ private _infoBarController: InfoBarController;++ private _rightMenuController: RightMenuController;++ private _countBarController: CountBarController;++ private _sheetBarController: SheetBarControl;private _config: UniverConfig;@@@ -31,7 -38,10 +42,11 @@@this._initialize();this._toolbarController = new ToolBarController(this._plugin);+ this._cellEditorController = new CellEditorController(this._plugin);+ this._infoBarController = new InfoBarController(this._plugin);+ this._rightMenuController = new RightMenuController(this._plugin);+ this._countBarController = new CountBarController(this._plugin);+ this._sheetBarController = new SheetBarControl(this._plugin);// 初始化UIconst config = {@@@ -44,9 -54,22 +59,25 @@@toolbar: {getComponent: this._toolbarController.getComponent,},+ cellEditor: {+ getComponent: this._cellEditorController.getComponent,+ },+ infoBar: {+ getComponent: this._infoBarController.getComponent,+ renameSheet: this._infoBarController.renameSheet,+ },+ rightMenu: {+ getComponent: this._rightMenuController.getComponent,+ },+ countBar: {+ getComponent: this._countBarController.getComponent,+ },+ sheetBar: {+ getComponent: this._sheetBarController.getComponent,+ addSheet: this._sheetBarController.addSheet,+ selectSheet: this._sheetBarController.selectSheet,+ changeSheetName: this._sheetBarController.changeSheetName,+ },},};UI.create(config);