From 6ce3c8ac48bb63a93dfaf107fc2087f07835b8e2 Mon Sep 17 00:00:00 2001 From: "Frank.Qiu" Date: Fri, 27 Apr 2018 11:02:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8valuechooser=E8=BF=9B=E8=A1=8Cpopulate?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E4=BF=AE=E6=94=B9items?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/bundle.js | 14 +++++++++++--- dist/widget.js | 14 +++++++++++--- .../allvaluechooser/combo.allvaluechooser.js | 4 +++- .../allvaluechooser/pane.allvaluechooser.js | 4 +++- src/component/valuechooser/combo.valuechooser.js | 4 +++- src/component/valuechooser/pane.valuechooser.js | 4 +++- 6 files changed, 34 insertions(+), 10 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index d1a647078b..52ac1a9c81 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -110148,7 +110148,9 @@ BI.AllValueChooserCombo = BI.inherit(BI.AbstractAllValueChooser, { return val.value || []; }, - populate: function () { + populate: function (items) { + // 直接用combo的populate不会作用到AbstractValueChooser上 + this.items = items; this.combo.populate.apply(this, arguments); } }); @@ -110209,7 +110211,9 @@ BI.AllValueChooserPane = BI.inherit(BI.AbstractAllValueChooser, { return val.value || []; }, - populate: function () { + populate: function (items) { + // 直接用combo的populate不会作用到AbstractValueChooser上 + this.items = items; this.list.populate.apply(this.list, arguments); } }); @@ -111127,7 +111131,9 @@ BI.ValueChooserCombo = BI.inherit(BI.AbstractValueChooser, { }; }, - populate: function () { + populate: function (items) { + // 直接用combo的populate不会作用到AbstractValueChooser上 + this.items = items; this.combo.populate.apply(this, arguments); } }); @@ -111183,6 +111189,8 @@ BI.ValueChooserPane = BI.inherit(BI.AbstractValueChooser, { }, populate: function () { + // 直接用combo的populate不会作用到AbstractValueChooser上 + this.items = items; this.list.populate.apply(this.list, arguments); } }); diff --git a/dist/widget.js b/dist/widget.js index 4796f32a45..4d5ef19e3d 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -22989,7 +22989,9 @@ BI.AllValueChooserCombo = BI.inherit(BI.AbstractAllValueChooser, { return val.value || []; }, - populate: function () { + populate: function (items) { + // 直接用combo的populate不会作用到AbstractValueChooser上 + this.items = items; this.combo.populate.apply(this, arguments); } }); @@ -23050,7 +23052,9 @@ BI.AllValueChooserPane = BI.inherit(BI.AbstractAllValueChooser, { return val.value || []; }, - populate: function () { + populate: function (items) { + // 直接用combo的populate不会作用到AbstractValueChooser上 + this.items = items; this.list.populate.apply(this.list, arguments); } }); @@ -23968,7 +23972,9 @@ BI.ValueChooserCombo = BI.inherit(BI.AbstractValueChooser, { }; }, - populate: function () { + populate: function (items) { + // 直接用combo的populate不会作用到AbstractValueChooser上 + this.items = items; this.combo.populate.apply(this, arguments); } }); @@ -24024,6 +24030,8 @@ BI.ValueChooserPane = BI.inherit(BI.AbstractValueChooser, { }, populate: function () { + // 直接用combo的populate不会作用到AbstractValueChooser上 + this.items = items; this.list.populate.apply(this.list, arguments); } }); diff --git a/src/component/allvaluechooser/combo.allvaluechooser.js b/src/component/allvaluechooser/combo.allvaluechooser.js index ab85db3a20..20c4f05266 100644 --- a/src/component/allvaluechooser/combo.allvaluechooser.js +++ b/src/component/allvaluechooser/combo.allvaluechooser.js @@ -58,7 +58,9 @@ BI.AllValueChooserCombo = BI.inherit(BI.AbstractAllValueChooser, { return val.value || []; }, - populate: function () { + populate: function (items) { + // 直接用combo的populate不会作用到AbstractValueChooser上 + this.items = items; this.combo.populate.apply(this, arguments); } }); diff --git a/src/component/allvaluechooser/pane.allvaluechooser.js b/src/component/allvaluechooser/pane.allvaluechooser.js index 2ebc7972fe..301223b627 100644 --- a/src/component/allvaluechooser/pane.allvaluechooser.js +++ b/src/component/allvaluechooser/pane.allvaluechooser.js @@ -54,7 +54,9 @@ BI.AllValueChooserPane = BI.inherit(BI.AbstractAllValueChooser, { return val.value || []; }, - populate: function () { + populate: function (items) { + // 直接用combo的populate不会作用到AbstractValueChooser上 + this.items = items; this.list.populate.apply(this.list, arguments); } }); diff --git a/src/component/valuechooser/combo.valuechooser.js b/src/component/valuechooser/combo.valuechooser.js index ad20c8098b..bcccfc7893 100644 --- a/src/component/valuechooser/combo.valuechooser.js +++ b/src/component/valuechooser/combo.valuechooser.js @@ -51,7 +51,9 @@ BI.ValueChooserCombo = BI.inherit(BI.AbstractValueChooser, { }; }, - populate: function () { + populate: function (items) { + // 直接用combo的populate不会作用到AbstractValueChooser上 + this.items = items; this.combo.populate.apply(this, arguments); } }); diff --git a/src/component/valuechooser/pane.valuechooser.js b/src/component/valuechooser/pane.valuechooser.js index d23af65074..2e5b51e56b 100644 --- a/src/component/valuechooser/pane.valuechooser.js +++ b/src/component/valuechooser/pane.valuechooser.js @@ -48,7 +48,9 @@ BI.ValueChooserPane = BI.inherit(BI.AbstractValueChooser, { }; }, - populate: function () { + populate: function (items) { + // 直接用combo的populate不会作用到AbstractValueChooser上 + this.items = items; this.list.populate.apply(this.list, arguments); } });