@indfnd/common 1.0.119 → 1.0.120
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 +7 -0
- package/dist/ind-common.es.js +12 -18
- package/dist/ind-common.umd.cjs +76 -76
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.0.120](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.119...v1.0.120) (2025-07-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 增加表格单位转换维度 ([a8c0e21](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/a8c0e21b805885d0fbb44b6187a95cf8a8cce215))
|
|
11
|
+
|
|
5
12
|
### [1.0.119](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.118...v1.0.119) (2025-06-16)
|
|
6
13
|
|
|
7
14
|
### [1.0.118](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.117...v1.0.118) (2025-06-04)
|
package/dist/ind-common.es.js
CHANGED
|
@@ -5460,7 +5460,7 @@ var lodash = { exports: {} };
|
|
|
5460
5460
|
})(lodash, lodash.exports);
|
|
5461
5461
|
var _ = lodash.exports;
|
|
5462
5462
|
const name$1 = "@indfnd/common";
|
|
5463
|
-
const version = "1.0.
|
|
5463
|
+
const version = "1.0.119";
|
|
5464
5464
|
const author = "huxuetong";
|
|
5465
5465
|
const publishConfig = {
|
|
5466
5466
|
registry: "https://registry.npmjs.org/"
|
|
@@ -49227,7 +49227,7 @@ var FormImpl = {
|
|
|
49227
49227
|
});
|
|
49228
49228
|
}
|
|
49229
49229
|
_.forEach(this.fieldList, (d, idx) => {
|
|
49230
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
49230
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
49231
49231
|
let itemInner;
|
|
49232
49232
|
if (d.render) {
|
|
49233
49233
|
itemInner = d.render(h, d, this.form);
|
|
@@ -49671,23 +49671,11 @@ var FormImpl = {
|
|
|
49671
49671
|
default: {
|
|
49672
49672
|
let text = this.form[d.formKey];
|
|
49673
49673
|
if (d.enumKey) {
|
|
49674
|
-
|
|
49675
|
-
text = ((this.enumData[d.enumKey] || {}).enumData || {})[text];
|
|
49676
|
-
if ((text === null || text === void 0) && (temp == null ? void 0 : temp.includes(","))) {
|
|
49677
|
-
text = temp.split(",").map((m) => ((this.enumData[d.enumKey] || {}).enumData || {})[m]).join("\u3001");
|
|
49678
|
-
}
|
|
49674
|
+
text = (_p = (_o = this.enumData[d.enumKey]) == null ? void 0 : _o.enumData) == null ? void 0 : _p[text];
|
|
49679
49675
|
} else if (d.enumList && d.enumList.length) {
|
|
49680
|
-
|
|
49681
|
-
text = ((d.enumList || []).find(({ K }) => K === text) || {}).V;
|
|
49682
|
-
if ((text === null || text === void 0) && (temp == null ? void 0 : temp.includes(","))) {
|
|
49683
|
-
text = temp.split(",").map((m) => ((d.enumList || []).find(({ K }) => K === m) || {}).V).join("\u3001");
|
|
49684
|
-
}
|
|
49676
|
+
text = (_r = (_q = d.enumList) == null ? void 0 : _q.find(({ K }) => K === text)) == null ? void 0 : _r.V;
|
|
49685
49677
|
} else if (d.enumData) {
|
|
49686
|
-
|
|
49687
|
-
text = d.enumData[text];
|
|
49688
|
-
if ((text === null || text === void 0) && (temp == null ? void 0 : temp.includes(","))) {
|
|
49689
|
-
text = temp.split(",").map((m) => d.enumData[m]).join("\u3001");
|
|
49690
|
-
}
|
|
49678
|
+
text = (_s = d.enumData) == null ? void 0 : _s[text];
|
|
49691
49679
|
}
|
|
49692
49680
|
if (d.dateFormat) {
|
|
49693
49681
|
text = formatDate$1(text);
|
|
@@ -53049,7 +53037,13 @@ function changeCellUnit(fromUnit, toUnit, rowData, prop) {
|
|
|
53049
53037
|
WY_YY: 1 / 1e4,
|
|
53050
53038
|
WY_Y: 1e4,
|
|
53051
53039
|
Y_YY: 1 / 1e4 / 1e4,
|
|
53052
|
-
Y_WY: 1 / 1e4
|
|
53040
|
+
Y_WY: 1 / 1e4,
|
|
53041
|
+
WZ_Z: 1e4,
|
|
53042
|
+
X_Z: 5 * 1e4,
|
|
53043
|
+
WX_Z: 1e4 * 5 * 1e4,
|
|
53044
|
+
Z_WZ: 1 / 1e4,
|
|
53045
|
+
Z_X: 1 / 5 / 1e4,
|
|
53046
|
+
Z_WX: 1 / 1e4 / 1e4 / 5
|
|
53053
53047
|
};
|
|
53054
53048
|
const ratio = unitChangeRatio[`${fromUnit}_${toUnit}`];
|
|
53055
53049
|
if (!ratio)
|