From 64d3a1a97d6ca34a837b67304d357372ccfcd235 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 20 Aug 2019 14:09:11 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-20869=20fix:=20=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E6=A0=91popup=E7=9A=84=E6=9C=80=E5=B0=8F=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E6=94=B9=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/multitree/multi.tree.popup.js | 2 +- .../multitree/trigger/multi.tree.button.checkselected.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/widget/multitree/multi.tree.popup.js b/src/widget/multitree/multi.tree.popup.js index 64d54d66b..e39033b16 100644 --- a/src/widget/multitree/multi.tree.popup.js +++ b/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: { diff --git a/src/widget/multitree/trigger/multi.tree.button.checkselected.js b/src/widget/multitree/trigger/multi.tree.button.checkselected.js index 4cb5489d7..3b51fb6f9 100644 --- a/src/widget/multitree/trigger/multi.tree.button.checkselected.js +++ b/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); + } + } });