szld-libs 0.3.18 → 0.3.19
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/dist/szld-components.es.js +5 -4
- package/dist/szld-components.umd.js +1 -1
- package/es/hooks/useUniversalTable.d.ts +1 -1
- package/es/hooks/useUniversalTable.js +6 -6
- package/es/index.js +24 -20
- package/es/mock/index.js +27 -29
- package/es/utils/method.js +16 -16
- package/es/utils/szxkFunc.d.ts +1 -1
- package/lib/hooks/useUniversalTable.d.ts +1 -1
- package/lib/hooks/useUniversalTable.js +6 -6
- package/lib/index.js +22 -18
- package/lib/mock/index.js +27 -29
- package/lib/utils/method.js +16 -16
- package/lib/utils/szxkFunc.d.ts +1 -1
- package/package.json +1 -1
|
@@ -26606,6 +26606,10 @@ const iV = (e, r) => {
|
|
|
26606
26606
|
let t = xc.cloneDeep(e);
|
|
26607
26607
|
const { attr_list: i = [] } = t, { isMobile: l = !1, guid: f, isListToObj: c = !1, isAutoFill: p = !0 } = e;
|
|
26608
26608
|
let m = [];
|
|
26609
|
+
p && ((w = t == null ? void 0 : t.attr_list) == null || w.forEach((x) => {
|
|
26610
|
+
var b, E, D, S, R, k;
|
|
26611
|
+
(b = x == null ? void 0 : x.json) != null && b["auto-generate"] && ((E = x == null ? void 0 : x.json) != null && E["auto-generate-type"]) && (((D = x == null ? void 0 : x.json) == null ? void 0 : D["auto-generate-type"]) === "currenttime" && (x.attrvalue = Sn().format("YYYY-MM-DD HH:mm:ss")), ((S = x == null ? void 0 : x.json) == null ? void 0 : S["auto-generate-type"]) === "guid" && (x.attrvalue = f || "")), (R = x == null ? void 0 : x.json) != null && R.default && (x.attrvalue = (k = x == null ? void 0 : x.json) == null ? void 0 : k.default);
|
|
26612
|
+
}));
|
|
26609
26613
|
const d = (x, b) => {
|
|
26610
26614
|
try {
|
|
26611
26615
|
const E = new Map(x.map((D, S) => [D.attrid, S]));
|
|
@@ -26676,10 +26680,7 @@ const iV = (e, r) => {
|
|
|
26676
26680
|
}
|
|
26677
26681
|
return x;
|
|
26678
26682
|
};
|
|
26679
|
-
return t.attr_list && Array.isArray(t.attr_list) && d(i, r),
|
|
26680
|
-
var b, E, D, S, R, k;
|
|
26681
|
-
(b = x == null ? void 0 : x.json) != null && b["auto-generate"] && ((E = x == null ? void 0 : x.json) != null && E["auto-generate-type"]) && (((D = x == null ? void 0 : x.json) == null ? void 0 : D["auto-generate-type"]) === "currenttime" && (x.attrvalue = Sn().format("YYYY-MM-DD HH:mm:ss")), ((S = x == null ? void 0 : x.json) == null ? void 0 : S["auto-generate-type"]) === "guid" && (x.attrvalue = f || "")), (R = x == null ? void 0 : x.json) != null && R.default && (x.attrvalue = (k = x == null ? void 0 : x.json) == null ? void 0 : k.default);
|
|
26682
|
-
})), {
|
|
26683
|
+
return t.attr_list && Array.isArray(t.attr_list) && d(i, r), {
|
|
26683
26684
|
updatedData: c ? iO(t.attr_list || []) : t,
|
|
26684
26685
|
uploadedFiles: m
|
|
26685
26686
|
};
|