@indfnd/common 1.0.118 → 1.0.119
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 +2 -0
- package/dist/ind-common.es.js +17 -5
- package/dist/ind-common.umd.cjs +76 -76
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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.119](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.118...v1.0.119) (2025-06-16)
|
|
6
|
+
|
|
5
7
|
### [1.0.118](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.117...v1.0.118) (2025-06-04)
|
|
6
8
|
|
|
7
9
|
|
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.118";
|
|
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;
|
|
49231
49231
|
let itemInner;
|
|
49232
49232
|
if (d.render) {
|
|
49233
49233
|
itemInner = d.render(h, d, this.form);
|
|
@@ -49671,11 +49671,23 @@ var FormImpl = {
|
|
|
49671
49671
|
default: {
|
|
49672
49672
|
let text = this.form[d.formKey];
|
|
49673
49673
|
if (d.enumKey) {
|
|
49674
|
-
|
|
49674
|
+
let temp = text;
|
|
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
|
+
}
|
|
49675
49679
|
} else if (d.enumList && d.enumList.length) {
|
|
49676
|
-
|
|
49680
|
+
let temp = text;
|
|
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
|
+
}
|
|
49677
49685
|
} else if (d.enumData) {
|
|
49678
|
-
|
|
49686
|
+
let temp = text;
|
|
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
|
+
}
|
|
49679
49691
|
}
|
|
49680
49692
|
if (d.dateFormat) {
|
|
49681
49693
|
text = formatDate$1(text);
|