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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zzz-pc-view",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "main": "src/index.umd.js",
5
5
  "module": "src/index.es.js",
6
6
  "types": "src/index.d.ts",
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.bindList(toFlat(list2, childrenKey));
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
  }