szld-libs 0.3.56 → 0.3.57
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 +2770 -2770
- package/dist/szld-components.umd.js +22 -22
- package/es/utils/method.js +6 -5
- package/lib/utils/method.js +6 -5
- package/package.json +1 -1
package/es/utils/method.js
CHANGED
|
@@ -370,7 +370,7 @@ const handleAttrListToObj = (attrList) => {
|
|
|
370
370
|
function processLevel(arr) {
|
|
371
371
|
const result = {};
|
|
372
372
|
arr.forEach((item) => {
|
|
373
|
-
var _a2, _b, _c, _d;
|
|
373
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
|
374
374
|
const key = `${item.attrid}_${item.attrtype}`;
|
|
375
375
|
if (item.attrtype === 1 && item.children.length > 0 && !Array.isArray(item.children)) {
|
|
376
376
|
result[key] = {
|
|
@@ -401,14 +401,15 @@ const handleAttrListToObj = (attrList) => {
|
|
|
401
401
|
return handleObjDetailToSignleAttrList((children == null ? void 0 : children[0]) || [], v);
|
|
402
402
|
});
|
|
403
403
|
} else {
|
|
404
|
-
|
|
404
|
+
item.childAsid = ((_d = (_c = children == null ? void 0 : children[0]) == null ? void 0 : _c[0]) == null ? void 0 : _d.asid) || "";
|
|
405
|
+
children = [[]];
|
|
405
406
|
}
|
|
406
407
|
if ((children == null ? void 0 : children.length) && Array.isArray(children == null ? void 0 : children[0])) {
|
|
407
408
|
result[key] = {
|
|
408
|
-
asid: ((
|
|
409
|
-
data_list: children.map((child) => {
|
|
409
|
+
asid: ((_f = (_e = children == null ? void 0 : children[0]) == null ? void 0 : _e[0]) == null ? void 0 : _f.asid) || item.childAsid || "",
|
|
410
|
+
data_list: (children == null ? void 0 : children.length) && ((_g = children == null ? void 0 : children[0]) == null ? void 0 : _g.length) && children.map((child) => {
|
|
410
411
|
return processLevel(child);
|
|
411
|
-
})
|
|
412
|
+
}) || []
|
|
412
413
|
};
|
|
413
414
|
}
|
|
414
415
|
} else {
|
package/lib/utils/method.js
CHANGED
|
@@ -372,7 +372,7 @@ const handleAttrListToObj = (attrList) => {
|
|
|
372
372
|
function processLevel(arr) {
|
|
373
373
|
const result = {};
|
|
374
374
|
arr.forEach((item) => {
|
|
375
|
-
var _a2, _b, _c, _d;
|
|
375
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
|
376
376
|
const key = `${item.attrid}_${item.attrtype}`;
|
|
377
377
|
if (item.attrtype === 1 && item.children.length > 0 && !Array.isArray(item.children)) {
|
|
378
378
|
result[key] = {
|
|
@@ -403,14 +403,15 @@ const handleAttrListToObj = (attrList) => {
|
|
|
403
403
|
return handleObjDetailToSignleAttrList((children == null ? void 0 : children[0]) || [], v);
|
|
404
404
|
});
|
|
405
405
|
} else {
|
|
406
|
-
|
|
406
|
+
item.childAsid = ((_d = (_c = children == null ? void 0 : children[0]) == null ? void 0 : _c[0]) == null ? void 0 : _d.asid) || "";
|
|
407
|
+
children = [[]];
|
|
407
408
|
}
|
|
408
409
|
if ((children == null ? void 0 : children.length) && Array.isArray(children == null ? void 0 : children[0])) {
|
|
409
410
|
result[key] = {
|
|
410
|
-
asid: ((
|
|
411
|
-
data_list: children.map((child) => {
|
|
411
|
+
asid: ((_f = (_e = children == null ? void 0 : children[0]) == null ? void 0 : _e[0]) == null ? void 0 : _f.asid) || item.childAsid || "",
|
|
412
|
+
data_list: (children == null ? void 0 : children.length) && ((_g = children == null ? void 0 : children[0]) == null ? void 0 : _g.length) && children.map((child) => {
|
|
412
413
|
return processLevel(child);
|
|
413
|
-
})
|
|
414
|
+
}) || []
|
|
414
415
|
};
|
|
415
416
|
}
|
|
416
417
|
} else {
|