From ab999a7ec589edeccc09a225a4debae2939fd6fa Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 12 Aug 2020 14:56:23 +0800 Subject: [PATCH] update --- src/component/allvaluechooser/combo.allvaluechooser.js | 4 +++- src/component/allvaluechooser/pane.allvaluechooser.js | 4 +++- src/component/valuechooser/combo.valuechooser.insert.js | 4 +++- src/component/valuechooser/combo.valuechooser.js | 4 +++- src/component/valuechooser/pane.valuechooser.js | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/component/allvaluechooser/combo.allvaluechooser.js b/src/component/allvaluechooser/combo.allvaluechooser.js index db8bb1732..3b7306a6a 100644 --- a/src/component/allvaluechooser/combo.allvaluechooser.js +++ b/src/component/allvaluechooser/combo.allvaluechooser.js @@ -61,7 +61,9 @@ BI.AllValueChooserCombo = BI.inherit(BI.AbstractAllValueChooser, { populate: function (items) { // 直接用combo的populate不会作用到AbstractValueChooser上 - this.items = items; + if (BI.isNotNull(items)) { + this.items = items; + } this.combo.populate(); } }); diff --git a/src/component/allvaluechooser/pane.allvaluechooser.js b/src/component/allvaluechooser/pane.allvaluechooser.js index 9983bb42a..93ad36cba 100644 --- a/src/component/allvaluechooser/pane.allvaluechooser.js +++ b/src/component/allvaluechooser/pane.allvaluechooser.js @@ -58,7 +58,9 @@ BI.AllValueChooserPane = BI.inherit(BI.AbstractAllValueChooser, { populate: function (items) { // 直接用combo的populate不会作用到AbstractValueChooser上 - this.items = items; + if (BI.isNotNull(items)) { + this.items = items; + } this.list.populate(); } }); diff --git a/src/component/valuechooser/combo.valuechooser.insert.js b/src/component/valuechooser/combo.valuechooser.insert.js index 840457564..b86963806 100644 --- a/src/component/valuechooser/combo.valuechooser.insert.js +++ b/src/component/valuechooser/combo.valuechooser.insert.js @@ -88,7 +88,9 @@ BI.ValueChooserInsertCombo = BI.inherit(BI.AbstractValueChooser, { populate: function (items) { // 直接用combo的populate不会作用到AbstractValueChooser上 - this.items = items; + if (BI.isNotNull(items)) { + this.items = items; + } this.combo.populate(); } }); diff --git a/src/component/valuechooser/combo.valuechooser.js b/src/component/valuechooser/combo.valuechooser.js index 1dc34d4d4..f7a1c6a35 100644 --- a/src/component/valuechooser/combo.valuechooser.js +++ b/src/component/valuechooser/combo.valuechooser.js @@ -92,7 +92,9 @@ BI.ValueChooserCombo = BI.inherit(BI.AbstractValueChooser, { populate: function (items) { // 直接用combo的populate不会作用到AbstractValueChooser上 - this.items = items; + if (BI.isNotNull(items)) { + this.items = items; + } this.combo.populate(); } }); diff --git a/src/component/valuechooser/pane.valuechooser.js b/src/component/valuechooser/pane.valuechooser.js index 6d464e337..d483f26fb 100644 --- a/src/component/valuechooser/pane.valuechooser.js +++ b/src/component/valuechooser/pane.valuechooser.js @@ -60,7 +60,9 @@ BI.ValueChooserPane = BI.inherit(BI.AbstractValueChooser, { populate: function (items) { // 直接用combo的populate不会作用到AbstractValueChooser上 - items && (this.items = items); + if (BI.isNotNull(items)) { + this.items = items; + } this.list.populate(); } });