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.

feat(sheet-numfmt-plugin):numfmt plugin optimization

eiji-thaacd64a7a32a
diff --git a/packages/sheets-plugin-numfmt/src/DateFormat.ts b/packages/sheets-plugin-numfmt/src/DateFormat.ts
deleted file mode 100644
index 3a5d4b3dfe..0000000000
--- a/packages/sheets-plugin-numfmt/src/DateFormat.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-// import {Context} from "@univer/core";
-
-// export function DateFormat(ctx: Context) {
-// const workbook = ctx.getWorkBook();
-// workbook.getFormatManager().add('date1', (value) => {
-// // TODO ...
-// // 转换格式化后的数据
-// return '';
-// })
-// workbook.getFormatManager().add('date2', (value) => {
-// return '';
-// })
-// workbook.getFormatManager().add('date2', (value) => {
-// return '';
-// })
-// }
diff --git a/packages/sheets-plugin-numfmt/src/FormatPlugin.ts b/packages/sheets-plugin-numfmt/src/FormatPlugin.ts
deleted file mode 100644
index bfaccbc5cc..0000000000
--- a/packages/sheets-plugin-numfmt/src/FormatPlugin.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { Context, IOCContainer, Plugin } from '@univer/core';
-// import { DateFormat } from './DateFormat';
-
-export class FormatPlugin extends Plugin {
- onMapping(container: IOCContainer): void {}
-
- onMounted(ctx: Context): void {
- // DateFormat(ctx);
- }
-}
diff --git a/packages/sheets-plugin-numfmt/src/NumfmtModel.ts b/packages/sheets-plugin-numfmt/src/NumfmtModel.ts
new file mode 100644
index 0000000000..a0e8598c22
--- /dev/null
+++ b/packages/sheets-plugin-numfmt/src/NumfmtModel.ts
@@ -0,0 +1,5 @@
+import { ObjectMatrix } from '@univer/core/src';
+
+export class NumfmtModel {
+ protected _matrix: ObjectMatrix<any>;
+}
diff --git a/packages/sheets-plugin-numfmt/src/NumfmtPlugin.ts b/packages/sheets-plugin-numfmt/src/NumfmtPlugin.ts
new file mode 100644
index 0000000000..4a99b38d31
--- /dev/null
+++ b/packages/sheets-plugin-numfmt/src/NumfmtPlugin.ts
@@ -0,0 +1,5 @@
+import { Context, Plugin } from '@univer/core';
+
+export class NumfmtPlugin extends Plugin {
+ onMounted(ctx: Context): void {}
+}