zzz-pc-view 0.0.59 → 0.0.60
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/package.json +1 -1
- package/src/index.es.js +4 -1
- package/src/index.umd.js +1 -1
package/package.json
CHANGED
package/src/index.es.js
CHANGED
|
@@ -3084,7 +3084,10 @@ const setList = (config, list2) => {
|
|
|
3084
3084
|
if (list2.length > 0 && !(list2[0] instanceof target)) {
|
|
3085
3085
|
const { childrenKey } = config;
|
|
3086
3086
|
if (childrenKey) {
|
|
3087
|
-
target.
|
|
3087
|
+
const primaryKey = getByClass(target).propertyKey;
|
|
3088
|
+
const map2 = toKeyValue(list2, primaryKey);
|
|
3089
|
+
const treeList = target.bindList(toFlat(list2, childrenKey));
|
|
3090
|
+
list2 = treeList.filter((node) => map2[node[primaryKey]]);
|
|
3088
3091
|
} else {
|
|
3089
3092
|
list2 = target.bindList(list2);
|
|
3090
3093
|
}
|