Browse Source

KERNEL-12891 feat: treevaluechooser支持传入数组类型的value

es6
zsmj 2 years ago
parent
commit
13ef11859b
  1. 5
      src/component/treevaluechooser/abstract.treevaluechooser.js

5
src/component/treevaluechooser/abstract.treevaluechooser.js

@ -875,6 +875,11 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
BI.set(result, parentPath.slice(0, index + 1), {});
}
});
// 执行完一条路径,check一下
var lengths = BI.size(BI.get(result, parentPath.slice(0, -1)));
if (lengths === value2ParentMap[value]?.children?.length) {
BI.set(result, parentPath.slice(0, -1), {});
}
});
return result;

Loading…
Cancel
Save