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 numfmt service interface (#569)

Wenzhao Huada808f4c55a
diff --git a/packages/sheets-plugin-numfmt/src/service/type.ts b/packages/sheets-plugin-numfmt/src/service/type.ts
index 6f98114aa2..7cd8d5d0b0 100644
--- a/packages/sheets-plugin-numfmt/src/service/type.ts
+++ b/packages/sheets-plugin-numfmt/src/service/type.ts
@@ -13,8 +13,14 @@ export type NumfmtItemWithCache = NumfmtItem & {
};
export interface INumfmtService {
getValue(workbookId: string, worksheetId: string, row: number, col: number): Nullable<NumfmtItemWithCache>;
- setValue(workbookId: string, worksheetId: string, row: number, col: number, value: Nullable<NumfmtItem>): void;
getModel(workbookId: string, worksheetId: string): Nullable<ObjectMatrix<NumfmtItemWithCache>>;
+
+ setValue(workbookId: string, worksheetId: string, row: number, col: number, value: Nullable<NumfmtItem>): void;
+ setValues(
+ workbookId: string,
+ worksheetId: string,
+ values: Array<{ row: number; col: number; pattern?: string; type: NumfmtItem['type'] }>
+ ): void;
}
export const INumfmtService = createIdentifier<INumfmtService>('INumfmtService');