From 10b8d15dc92b5b5ef7ca774f2134aeb979a0c6cd Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 10 Jun 2019 09:14:01 +0800 Subject: [PATCH] =?UTF-8?q?BI-45174=20feature:=20combo=E7=9A=84=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/combination/combo.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/base/combination/combo.js b/src/base/combination/combo.js index bed059725..2cdd40d60 100644 --- a/src/base/combination/combo.js +++ b/src/base/combination/combo.js @@ -10,6 +10,9 @@ BI.Combo = BI.inherit(BI.Widget, { trigger: "click", toggle: true, direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right + logic: { + dynamic: true + }, container: null, // popupview放置的容器,默认为this.element isDefaultInit: false, destroyWhenHide: false, @@ -67,14 +70,13 @@ BI.Combo = BI.inherit(BI.Widget, { } }); - BI.createWidget({ - type: "bi.vertical", - scrolly: false, - element: this, + BI.createWidget(BI.extend({ + element: this + }, BI.LogicFactory.createLogic("vertical", BI.extend(o.logic, { items: [ - {el: this.combo} + { el: this.combo } ] - }); + })))); o.isDefaultInit && (this._assertPopupView()); BI.Resizers.add(this.getName(), BI.bind(function () { if (this.isViewVisible()) {