@indfnd/common 1.1.52 → 1.1.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.53](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.52...v1.1.53) (2026-02-24)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * table导出时处理千分位 ([b863108](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/b863108c31782a0da997bef5080f07f333f416ba))
11
+ * table导出时处理千分位 ([1c73380](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/1c73380ff6f033ca1ee100c6f244ca2d4599aa93))
12
+
5
13
  ### [1.1.52](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.51...v1.1.52) (2026-02-24)
6
14
 
7
15
  ### [1.1.51](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.50...v1.1.51) (2026-02-24)
@@ -32,7 +32,7 @@ var lodash = { exports: {} };
32
32
  (function(module2, exports2) {
33
33
  (function() {
34
34
  var undefined$1;
35
- var VERSION2 = "4.17.23";
35
+ var VERSION2 = "4.17.21";
36
36
  var LARGE_ARRAY_SIZE = 200;
37
37
  var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
38
38
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
@@ -1918,28 +1918,8 @@ var lodash = { exports: {} };
1918
1918
  }
1919
1919
  function baseUnset(object, path) {
1920
1920
  path = castPath(path, object);
1921
- var index2 = -1, length = path.length;
1922
- if (!length) {
1923
- return true;
1924
- }
1925
- var isRootPrimitive = object == null || typeof object !== "object" && typeof object !== "function";
1926
- while (++index2 < length) {
1927
- var key = path[index2];
1928
- if (typeof key !== "string") {
1929
- continue;
1930
- }
1931
- if (key === "__proto__" && !hasOwnProperty.call(object, "__proto__")) {
1932
- return false;
1933
- }
1934
- if (key === "constructor" && index2 + 1 < length && typeof path[index2 + 1] === "string" && path[index2 + 1] === "prototype") {
1935
- if (isRootPrimitive && index2 === 0) {
1936
- continue;
1937
- }
1938
- return false;
1939
- }
1940
- }
1941
- var obj = parent(object, path);
1942
- return obj == null || delete obj[toKey(last(path))];
1921
+ object = parent(object, path);
1922
+ return object == null || delete object[toKey(last(path))];
1943
1923
  }
1944
1924
  function baseUpdate(object, path, updater, customizer) {
1945
1925
  return baseSet(object, path, updater(baseGet(object, path)), customizer);
@@ -5480,7 +5460,7 @@ var lodash = { exports: {} };
5480
5460
  })(lodash, lodash.exports);
5481
5461
  var _ = lodash.exports;
5482
5462
  const name$1 = "@indfnd/common";
5483
- const version = "1.1.51";
5463
+ const version = "1.1.52";
5484
5464
  const author = "huxuetong";
5485
5465
  const publishConfig = {
5486
5466
  registry: "https://registry.npmjs.org/"
@@ -43743,7 +43723,7 @@ function initRowSpanInfosNew(options) {
43743
43723
  });
43744
43724
  }
43745
43725
  }
43746
- function exportJsonToExcel(excelData) {
43726
+ function exportJsonToExcel(excelData, isPerMille) {
43747
43727
  try {
43748
43728
  if (!excelData || !excelData.title) {
43749
43729
  throw new Error("\u5BFC\u51FAExcel\u5931\u8D25: \u7F3A\u5C11\u5FC5\u8981\u7684\u5BFC\u51FA\u6570\u636E");
@@ -43945,6 +43925,9 @@ function exportJsonToExcel(excelData) {
43945
43925
  }
43946
43926
  _.forEach(dataCellStyle2, (v, k) => {
43947
43927
  worksheet.getCell(rowsNow + i, j + 1)[k] = v;
43928
+ if (isPerMille) {
43929
+ worksheet.getCell(rowsNow + i, j + 1).numFmt = "#,##0.00";
43930
+ }
43948
43931
  });
43949
43932
  }
43950
43933
  } catch (cellError) {
@@ -50964,6 +50947,10 @@ const __vue2_script$1n = {
50964
50947
  disablePage: {
50965
50948
  type: Boolean,
50966
50949
  default: false
50950
+ },
50951
+ isPerMille: {
50952
+ type: Boolean,
50953
+ default: true
50967
50954
  }
50968
50955
  },
50969
50956
  data() {
@@ -51210,7 +51197,7 @@ const __vue2_script$1n = {
51210
51197
  rowSpanDefs: this.rowSpanDefs,
51211
51198
  watermark: this.watermark
51212
51199
  };
51213
- exportJsonToExcel(params);
51200
+ exportJsonToExcel(params, this.isPerMille);
51214
51201
  } else {
51215
51202
  this.$Message.info("\u8868\u683C\u6570\u636E\u4E0D\u80FD\u4E3A\u7A7A\uFF01");
51216
51203
  }
@@ -53256,7 +53243,7 @@ var render$14 = function() {
53256
53243
  return _vm.$emit("revertColumnRow");
53257
53244
  } } }, [_vm._v(" \u8F6C\u7F6E ")]) : _vm._e(), !_vm.isIndexManageTable && _vm.$config.indexManage ? _c("IndexManage", { attrs: { "tableRef": _vm.tableRef, "funId": (_vm.funId || "") + "-" + _vm.$route.meta.permissionId }, on: { "resetColumns": _vm.resetColumns } }) : _vm._e(), _c("IndButton", { attrs: { "bizType": "reset" }, on: { "click": function($event) {
53258
53245
  return _vm.tableSettingToggle("3");
53259
- } } }, [_vm._v(" \u5BFC\u51FA ")])], 1), _c("DropdownMenu", { style: { width: _vm.btnSel != "1" ? "400px" : "200px", padding: "5px 10px" }, attrs: { "slot": "list" }, slot: "list" }, [_c("ExportData", { directives: [{ name: "show", rawName: "v-show", value: _vm.btnSel == "3", expression: "btnSel == '3'" }], ref: "exportData", attrs: { "rowSpanDefs": _vm.rowSpanDefs, "exportFileName": _vm.exportFileName, "paramLeft": _vm.paramLeft, "paramRight": _vm.paramRight || _vm.paramRightUnit, "rowSpanColumns": _vm.rowSpanColumns || _vm.mergeColumns, "rowSpanIndexCol": _vm.rowSpanIndexCol || _vm.mergeIndexCol, "pinnedTopRowData": _vm.topRows, "tableColumns": _vm.tableColumns, "data": _vm.tableData, "dataApi": _vm.dataApi, "renderDataFn": _vm.renderDataFn, "searchParams": _vm.searchParams, "sortParams": _vm.sortParams, "paginationParams": _vm.paginationParams, "show-summary": _vm.tableShowSummary, "summary-method": _vm.tableSummaryMethod, "parsedColumns": _vm.parsedColumns, "exportEnum": _vm.exportEnum, "data-children": _vm.dataChildren, "defaultUnitType": _vm.defaultUnitType, "unitType": _vm.unitType, "switchCols": _vm.switchCols, "watermark": _vm.watermark, "disablePage": _vm.disablePage }, on: { "doExport": function($event) {
53246
+ } } }, [_vm._v(" \u5BFC\u51FA ")])], 1), _c("DropdownMenu", { style: { width: _vm.btnSel != "1" ? "400px" : "200px", padding: "5px 10px" }, attrs: { "slot": "list" }, slot: "list" }, [_c("ExportData", { directives: [{ name: "show", rawName: "v-show", value: _vm.btnSel == "3", expression: "btnSel == '3'" }], ref: "exportData", attrs: { "rowSpanDefs": _vm.rowSpanDefs, "exportFileName": _vm.exportFileName, "paramLeft": _vm.paramLeft, "paramRight": _vm.paramRight || _vm.paramRightUnit, "rowSpanColumns": _vm.rowSpanColumns || _vm.mergeColumns, "rowSpanIndexCol": _vm.rowSpanIndexCol || _vm.mergeIndexCol, "pinnedTopRowData": _vm.topRows, "tableColumns": _vm.tableColumns, "data": _vm.tableData, "dataApi": _vm.dataApi, "renderDataFn": _vm.renderDataFn, "searchParams": _vm.searchParams, "sortParams": _vm.sortParams, "paginationParams": _vm.paginationParams, "show-summary": _vm.tableShowSummary, "summary-method": _vm.tableSummaryMethod, "parsedColumns": _vm.parsedColumns, "exportEnum": _vm.exportEnum, "data-children": _vm.dataChildren, "defaultUnitType": _vm.defaultUnitType, "unitType": _vm.unitType, "switchCols": _vm.switchCols, "watermark": _vm.watermark, "disablePage": _vm.disablePage, "isPerMille": _vm.isPerMille }, on: { "doExport": function($event) {
53260
53247
  _vm.optionDropdownVisible = false;
53261
53248
  }, "doPreview": function($event) {
53262
53249
  _vm.optionDropdownVisible = false;
@@ -53374,6 +53361,10 @@ const __vue2_script$15 = {
53374
53361
  return ((_a = this.$config) == null ? void 0 : _a.agHeaderHeight) || 28;
53375
53362
  }
53376
53363
  },
53364
+ isPerMille: {
53365
+ type: Boolean,
53366
+ default: true
53367
+ },
53377
53368
  mini: {
53378
53369
  type: Boolean,
53379
53370
  default: false
@@ -64088,8 +64079,8 @@ var ConditionPanel = /* @__PURE__ */ function() {
64088
64079
  return __component__$n.exports;
64089
64080
  }();
64090
64081
  /*!
64091
- * Signature Pad v4.2.0 | https://github.com/szimek/signature_pad
64092
- * (c) 2024 Szymon Nowak | Released under the MIT license
64082
+ * Signature Pad v4.1.7 | https://github.com/szimek/signature_pad
64083
+ * (c) 2023 Szymon Nowak | Released under the MIT license
64093
64084
  */
64094
64085
  class Point {
64095
64086
  constructor(x, y, pressure, time) {
@@ -64294,9 +64285,8 @@ class SignaturePad extends SignatureEventTarget {
64294
64285
  this.penColor = options.penColor || "black";
64295
64286
  this.backgroundColor = options.backgroundColor || "rgba(0,0,0,0)";
64296
64287
  this.compositeOperation = options.compositeOperation || "source-over";
64297
- this.canvasContextOptions = "canvasContextOptions" in options ? options.canvasContextOptions : {};
64298
64288
  this._strokeMoveUpdate = this.throttle ? throttle(SignaturePad.prototype._strokeUpdate, this.throttle) : SignaturePad.prototype._strokeUpdate;
64299
- this._ctx = canvas.getContext("2d", this.canvasContextOptions);
64289
+ this._ctx = canvas.getContext("2d");
64300
64290
  this.clear();
64301
64291
  this.on();
64302
64292
  }