Browse Source

Merge pull request #130135 in DEC/fineui from master to feature/x

* commit 'c90fe2a3eb71a711ecadfc0ce51a186f4fcd539b':
  KERNEL-12341 fix: 下拉树控件搜索顺序与正常状态保持一致
es6
superman 2 years ago
parent
commit
bf084055e8
  1. 1
      src/widget/multilayerselecttree/multilayerselecttree.trigger.js
  2. 1
      src/widget/multilayersingletree/multilayersingletree.trigger.js

1
src/widget/multilayerselecttree/multilayerselecttree.trigger.js

@ -161,6 +161,7 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
result.push(node);
result = result.concat(self._getChildren(node));
});
queue.reverse();
while (BI.isNotEmptyArray(queue)) {
var node = queue.pop();
var pNode = this.tree.search(this.tree.getRoot(), node.pId, "id");

1
src/widget/multilayersingletree/multilayersingletree.trigger.js

@ -170,6 +170,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
result.push(node);
result = result.concat(self._getChildren(node));
});
queue.reverse();
while (BI.isNotEmptyArray(queue)) {
var node = queue.pop();
var pNode = this.tree.search(this.tree.getRoot(), node.pId, "id");

Loading…
Cancel
Save