| 12345678910111213141516171819 |
- import { SetNumfmtCommand as l, SheetsNumfmtCellContentController as i } from "@univerjs/sheets-numfmt";
- import { FRange as o, FWorkbook as s } from "@univerjs/sheets/facade";
- class a extends o {
- setNumberFormat(t) {
- const e = [];
- return this.forEach((m, r) => e.push({ row: m, col: r, pattern: t })), this._commandService.syncExecuteCommand(l.id, {
- unitId: this._workbook.getUnitId(),
- subUnitId: this._worksheet.getSheetId(),
- values: e
- }), this;
- }
- }
- o.extend(a);
- class c extends s {
- setNumfmtLocal(t) {
- return this._injector.get(i).setNumfmtLocal(t), this;
- }
- }
- s.extend(c);
|