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(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.tsdeleted file mode 100644index 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.tsdeleted file mode 100644index 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.tsnew file mode 100644index 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.tsnew file mode 100644index 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 {}+}