Browse Source

Merge pull request #1190 in VISUAL/fineui from ~WINDY/fineui:master to master

* commit '5a99f0635a2b3d36d7c0f5abaccab5ce2b1b3353':
  无JIRA任务 refactor: 补一下check
es6
windy 5 years ago
parent
commit
61fc151322
  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, isDefaultInit: false,
itemsCreator: BI.emptyFn, itemsCreator: BI.emptyFn,
items: [], items: [],
value: "" value: "",
onLoaded: BI.emptyFn
}); });
}, },
@ -31,7 +32,10 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, {
keywordGetter: o.keywordGetter, keywordGetter: o.keywordGetter,
value: o.value, value: o.value,
scrollable: null, scrollable: null,
onLoaded: o.onLoaded onLoaded: function () {
self.tree.check();
o.onLoaded();
}
}); });
BI.createWidget({ 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"), tipText: BI.i18nText("BI-No_Selected_Item"),
isDefaultInit: false, isDefaultInit: false,
itemsCreator: BI.emptyFn, itemsCreator: BI.emptyFn,
items: [] items: [],
onLoaded: BI.emptyFn
}); });
}, },
@ -30,7 +31,10 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, {
keywordGetter: o.keywordGetter, keywordGetter: o.keywordGetter,
value: o.value, value: o.value,
scrollable: null, scrollable: null,
onLoaded: o.onLoaded onLoaded: function () {
self.tree.check();
o.onLoaded();
}
}); });
BI.createWidget({ BI.createWidget({

Loading…
Cancel
Save