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
fix(numfmt): #1132 should keep the style and use real values (#1140)
Gpound.liu13480b8dfb40
diff --git a/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.tsindex 5b2124023c..a5a8d86f97 100644--- a/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.ts+++ b/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.ts@@ -107,9 +107,8 @@ export class NumfmtEditorController extends Disposable {case 'currency':case 'grouped':case 'number': {- // remove the style atrconst cell = context.worksheet.getCellRaw(row, col);- return cell ? filterAtr(cell, ['s']) : cell;+ return cell;}case 'date':case 'time':