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
feat: register command to BasicWorksheetController
wzhudeve3debde814cb
diff --git a/packages/base-sheets/src/Controller/BasicWorksheet.controller.ts b/packages/base-sheets/src/Controller/BasicWorksheet.controller.tsindex 62ed24ef83..de70c63bc3 100644--- a/packages/base-sheets/src/Controller/BasicWorksheet.controller.ts+++ b/packages/base-sheets/src/Controller/BasicWorksheet.controller.ts@@ -7,7 +7,7 @@ import { SetWorksheetNameCommand } from '../Commands/Commands/set-worksheet-nameimport { SetWorksheetNameMutation } from '../Commands/Mutations/set-worksheet-name.mutation';import { SetWorksheetActivateCommand } from '../Commands/Commands/set-worksheet-activate.command';import { SetWorksheetActivateMutation } from '../Commands/Mutations/set-worksheet-activate.mutation';-import { ISetStyleParams, SetStyleCommand } from '../Commands/Commands/set-style.command';+import { ISetStyleParams, SetBackgroundColorCommand, SetCellBorderCommand, SetStyleCommand, SetTextColorCommand } from '../Commands/Commands/set-style.command';import { SetRangeStyleMutation } from '../Commands/Mutations/set-range-styles.mutation';import { ISetRangeFormattedValueParams, SetRangeFormattedValueCommand } from '../Commands/Commands/set-range-formatted-value.command';import { TrimWhitespaceCommand } from '../Commands/Commands/trim-whitespace.command';@@ -90,6 +90,10 @@ export class BasicWorksheetController extends Disposable implements IDisposableDeleteRangeMutation,SetRangeFormattedValueCommand,SetRangeFormattedValueMutation,++ SetTextColorCommand,+ SetBackgroundColorCommand,+ SetCellBorderCommand,].forEach((command) => this.disposeWithMe(this._commandService.registerCommand(command)));}