@indfnd/common 1.1.52 → 1.1.54
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 +21 -0
- package/dist/ind-common.es.js +23 -32
- package/dist/ind-common.umd.cjs +90 -90
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
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.54](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.53...v1.1.54) (2026-02-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 回滚 ([a42cf41](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/a42cf41962a342806d9a3700aa832368b1a97e78))
|
|
11
|
+
* 移动端放开Excel ([81341ad](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/81341ad0a157d3287ab38aa2cadcac90017712da))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* 表格导出到excel,isPerMille默认值处理 ([338ee3e](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/338ee3e5a9e809b6c4acd1847a81afad2d0b105e))
|
|
17
|
+
|
|
18
|
+
### [1.1.53](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.52...v1.1.53) (2026-02-24)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* table导出时处理千分位 ([b863108](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/b863108c31782a0da997bef5080f07f333f416ba))
|
|
24
|
+
* table导出时处理千分位 ([1c73380](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/1c73380ff6f033ca1ee100c6f244ca2d4599aa93))
|
|
25
|
+
|
|
5
26
|
### [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
27
|
|
|
7
28
|
### [1.1.51](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.50...v1.1.51) (2026-02-24)
|
package/dist/ind-common.es.js
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
1922
|
-
|
|
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.
|
|
5463
|
+
const version = "1.1.53";
|
|
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");
|
|
@@ -43924,7 +43904,11 @@ function exportJsonToExcel(excelData) {
|
|
|
43924
43904
|
} else if (columnType[j] === "n" && lineData[j]) {
|
|
43925
43905
|
const numericValue = typeof lineData[j].value === "string" ? parseFloat(lineData[j].value.replace(/,/g, "")) : lineData[j].value;
|
|
43926
43906
|
worksheet.getCell(rowsNow + i, j + 1).value = isNaN(numericValue) ? 0 : numericValue;
|
|
43927
|
-
|
|
43907
|
+
if (isPerMille) {
|
|
43908
|
+
worksheet.getCell(rowsNow + i, j + 1).numFmt = numberFormat[j];
|
|
43909
|
+
} else {
|
|
43910
|
+
worksheet.getCell(rowsNow + i, j + 1).numFmt = "";
|
|
43911
|
+
}
|
|
43928
43912
|
} else {
|
|
43929
43913
|
worksheet.getCell(rowsNow + i, j + 1).value = "";
|
|
43930
43914
|
}
|
|
@@ -50964,6 +50948,10 @@ const __vue2_script$1n = {
|
|
|
50964
50948
|
disablePage: {
|
|
50965
50949
|
type: Boolean,
|
|
50966
50950
|
default: false
|
|
50951
|
+
},
|
|
50952
|
+
isPerMille: {
|
|
50953
|
+
type: Boolean,
|
|
50954
|
+
default: false
|
|
50967
50955
|
}
|
|
50968
50956
|
},
|
|
50969
50957
|
data() {
|
|
@@ -51210,7 +51198,7 @@ const __vue2_script$1n = {
|
|
|
51210
51198
|
rowSpanDefs: this.rowSpanDefs,
|
|
51211
51199
|
watermark: this.watermark
|
|
51212
51200
|
};
|
|
51213
|
-
exportJsonToExcel(params);
|
|
51201
|
+
exportJsonToExcel(params, this.isPerMille);
|
|
51214
51202
|
} else {
|
|
51215
51203
|
this.$Message.info("\u8868\u683C\u6570\u636E\u4E0D\u80FD\u4E3A\u7A7A\uFF01");
|
|
51216
51204
|
}
|
|
@@ -53256,7 +53244,7 @@ var render$14 = function() {
|
|
|
53256
53244
|
return _vm.$emit("revertColumnRow");
|
|
53257
53245
|
} } }, [_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
53246
|
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) {
|
|
53247
|
+
} } }, [_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
53248
|
_vm.optionDropdownVisible = false;
|
|
53261
53249
|
}, "doPreview": function($event) {
|
|
53262
53250
|
_vm.optionDropdownVisible = false;
|
|
@@ -53374,6 +53362,10 @@ const __vue2_script$15 = {
|
|
|
53374
53362
|
return ((_a = this.$config) == null ? void 0 : _a.agHeaderHeight) || 28;
|
|
53375
53363
|
}
|
|
53376
53364
|
},
|
|
53365
|
+
isPerMille: {
|
|
53366
|
+
type: Boolean,
|
|
53367
|
+
default: false
|
|
53368
|
+
},
|
|
53377
53369
|
mini: {
|
|
53378
53370
|
type: Boolean,
|
|
53379
53371
|
default: false
|
|
@@ -64088,8 +64080,8 @@ var ConditionPanel = /* @__PURE__ */ function() {
|
|
|
64088
64080
|
return __component__$n.exports;
|
|
64089
64081
|
}();
|
|
64090
64082
|
/*!
|
|
64091
|
-
* Signature Pad v4.
|
|
64092
|
-
* (c)
|
|
64083
|
+
* Signature Pad v4.1.7 | https://github.com/szimek/signature_pad
|
|
64084
|
+
* (c) 2023 Szymon Nowak | Released under the MIT license
|
|
64093
64085
|
*/
|
|
64094
64086
|
class Point {
|
|
64095
64087
|
constructor(x, y, pressure, time) {
|
|
@@ -64294,9 +64286,8 @@ class SignaturePad extends SignatureEventTarget {
|
|
|
64294
64286
|
this.penColor = options.penColor || "black";
|
|
64295
64287
|
this.backgroundColor = options.backgroundColor || "rgba(0,0,0,0)";
|
|
64296
64288
|
this.compositeOperation = options.compositeOperation || "source-over";
|
|
64297
|
-
this.canvasContextOptions = "canvasContextOptions" in options ? options.canvasContextOptions : {};
|
|
64298
64289
|
this._strokeMoveUpdate = this.throttle ? throttle(SignaturePad.prototype._strokeUpdate, this.throttle) : SignaturePad.prototype._strokeUpdate;
|
|
64299
|
-
this._ctx = canvas.getContext("2d"
|
|
64290
|
+
this._ctx = canvas.getContext("2d");
|
|
64300
64291
|
this.clear();
|
|
64301
64292
|
this.on();
|
|
64302
64293
|
}
|