From 444ae13539a50a8f1ec7b948474fc97cac2d9819 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 17 Jul 2019 15:43:32 +0800 Subject: [PATCH] update --- src/case/list/list.select.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/case/list/list.select.js b/src/case/list/list.select.js index 7b2684f41..75637edc6 100644 --- a/src/case/list/list.select.js +++ b/src/case/list/list.select.js @@ -52,7 +52,7 @@ BI.SelectList = BI.inherit(BI.Widget, { callback.apply(self, arguments); if (op.times === 1) { self.toolbar.setVisible(items && items.length > 0); - self.toolbar.setEnable(!o.disabled && items && items.length > 0); + self.toolbar.setEnable(self.isEnabled() && items && items.length > 0); } self._checkAllSelected(); }); @@ -160,7 +160,7 @@ BI.SelectList = BI.inherit(BI.Widget, { populate: function (items) { this.toolbar.setVisible(!BI.isEmptyArray(items)); - this.toolbar.setEnable(!this.options.disabled && !BI.isEmptyArray(items)); + this.toolbar.setEnable(this.isEnabled() && !BI.isEmptyArray(items)); this.list.populate.apply(this.list, arguments); this._checkAllSelected(); },