Browse Source

无JIRA任务 refactor: 补一下check

es6
windy 5 years ago
parent
commit
5a99f0635a
  1. 8
      src/widget/multilayerselecttree/multilayerselecttree.popup.js
  2. 8
      src/widget/multilayersingletree/multilayersingletree.popup.js

8
src/widget/multilayerselecttree/multilayerselecttree.popup.js

@ -14,7 +14,8 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, {
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: [],
value: ""
value: "",
onLoaded: BI.emptyFn
});
},
@ -31,7 +32,10 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, {
keywordGetter: o.keywordGetter,
value: o.value,
scrollable: null,
onLoaded: o.onLoaded
onLoaded: function () {
self.tree.check();
o.onLoaded();
}
});
BI.createWidget({

8
src/widget/multilayersingletree/multilayersingletree.popup.js

@ -13,7 +13,8 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, {
tipText: BI.i18nText("BI-No_Selected_Item"),
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: []
items: [],
onLoaded: BI.emptyFn
});
},
@ -30,7 +31,10 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, {
keywordGetter: o.keywordGetter,
value: o.value,
scrollable: null,
onLoaded: o.onLoaded
onLoaded: function () {
self.tree.check();
o.onLoaded();
}
});
BI.createWidget({

Loading…
Cancel
Save