Browse Source

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

* commit '64d3a1a97d6ca34a837b67304d357372ccfcd235':
  REPORT-20869 fix: 下拉树popup的最小宽度改一下
es6
windy 5 years ago
parent
commit
e6254da685
  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), {
baseCls: "bi-multi-tree-popup",
maxWidth: "auto",
minWidth: 100,
minWidth: 140,
maxHeight: 400,
onLoaded: BI.emptyFn,
el: {

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

@ -59,7 +59,13 @@ BI.MultiTreeCheckSelectedButton = BI.inherit(BI.Single, {
setValue: function (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