Browse Source

REPORT-20869 fix: 下拉树popup的最小宽度改一下

es6
windy 5 years ago
parent
commit
64d3a1a97d
  1. 2
      src/widget/multitree/multi.tree.popup.js
  2. 8
      src/widget/multitree/trigger/multi.tree.button.checkselected.js

2
src/widget/multitree/multi.tree.popup.js

@ -9,7 +9,7 @@ BI.MultiTreePopup = BI.inherit(BI.Pane, {
return BI.extend(BI.MultiTreePopup.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.MultiTreePopup.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-multi-tree-popup", baseCls: "bi-multi-tree-popup",
maxWidth: "auto", maxWidth: "auto",
minWidth: 100, minWidth: 140,
maxHeight: 400, maxHeight: 400,
onLoaded: BI.emptyFn, onLoaded: BI.emptyFn,
el: { el: {

8
src/widget/multitree/trigger/multi.tree.button.checkselected.js

@ -59,7 +59,13 @@ BI.MultiTreeCheckSelectedButton = BI.inherit(BI.Single, {
setValue: function (v) { setValue: function (v) {
v || (v = {}); v || (v = {});
this.setVisible(BI.size(v.value) > 0); var show = BI.size(v.value) > 0;
this.setVisible(show);
if(show) {
this.indicator.setVisible(true);
this.checkSelected.setVisible(false);
}
} }
}); });

Loading…
Cancel
Save