Skip to content

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.

fix: fix merging error

wzhudev6d0b4e9bb942
diff --git a/packages/base-sheets/src/Commands/Commands/set-style.command.ts b/packages/base-sheets/src/Commands/Commands/set-style.command.ts
index 74383b69c0..647910a9a3 100644
--- a/packages/base-sheets/src/Commands/Commands/set-style.command.ts
+++ b/packages/base-sheets/src/Commands/Commands/set-style.command.ts
@@ -43,7 +43,7 @@ export interface ISetStyleParams<T> {
* The command to set cell style.
* Set style to a bunch of ranges.
*/
-export const SetStyleCommand: ICommand<ISetStyleParams> = {
+export const SetStyleCommand: ICommand = {
type: CommandType.COMMAND,
id: 'sheet.command.set-style',
@@ -415,69 +415,3 @@ export const SetTextRotationCommand: ICommand<ISetTextRotationCommandParams> = {
return commandService.executeCommand(SetStyleCommand.id, setStyleParams);
},
};
-
-export const SetSpanCommand: ICommand = {
- type: CommandType.COMMAND,
- id: 'sheet.command.set-span',
- handler: async (accessor, params) => true,
-};
-
-export const SetFontFamilyCommand: ICommand = {
- type: CommandType.COMMAND,
- id: 'sheet.command.set-font-family',
- handler: async (accessor) => true,
-};
-
-export const SetFontSizeCommand: ICommand = {
- type: CommandType.COMMAND,
- id: 'sheet.command.set-font-family',
- handler: async (accessor) => true,
-};
-
-export const SetTextColorCommand: ICommand = {
- type: CommandType.COMMAND,
- id: 'sheet.command.set-font-family',
- handler: async (accessor) => true,
-};
-
-export const SetBackgroundColorCommand: ICommand = {
- type: CommandType.COMMAND,
- id: 'sheet.command.set-background-color',
- handler: async (accessor) => true,
-};
-
-export const SetCellBorderCommand: ICommand = {
- type: CommandType.COMMAND,
- id: 'sheet.command.set-cell-border',
- handler: async (accessor) => true,
-};
-
-export const SetSpanCommand: ICommand = {
- type: CommandType.COMMAND,
- id: 'sheet.command.set-span',
- handler: async (params) => true,
-};
-
-export const SetVerticalTextAlignCommand: ICommand = {
- type: CommandType.COMMAND,
- id: 'sheet.command.set-vertical-text-align',
- handler: async (params) => true,
-};
-
-export const SetHorizontalTextAlignCommand: ICommand = {
- type: CommandType.COMMAND,
- id: 'sheet.command.set-horizontal-text-align',
- handler: async (params) => true,
-};
-
-export const SetTextWrapCommand: ICommand = {
- type: CommandType.COMMAND,
- id: 'sheet.command.set-text-wrap',
- handler: async (params) => true,
-};
-
-export const SetTextRotationCommand: ICommand = {
- type: CommandType.COMMAND,
- id: 'sheet.command.set-text-rotation',
- handler: async (params) => true,
-};