From 36edb243d8272a101caf2b276a484128a82d97b2 Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 16 Sep 2021 09:44:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/el.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/base/el.js b/src/base/el.js index f3f3e7e15..6feb40f42 100644 --- a/src/base/el.js +++ b/src/base/el.js @@ -9,18 +9,14 @@ BI.EL = BI.inherit(BI.Widget, { _defaultConfig: function () { return BI.extend(BI.EL.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-el", - el: {}, - layout: {} + el: {} }); }, - _init: function () { - BI.EL.superclass._init.apply(this, arguments); + + render: function () { var self = this, o = this.options; - this.ele = BI.createWidget(o.el); - BI.createWidget(o.layout, { - type: "bi.adaptive", - element: this, - items: [this.ele] + this.ele = BI.createWidget(o.el, { + element: this }); this.ele.on(BI.Controller.EVENT_CHANGE, function () { self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); @@ -39,4 +35,4 @@ BI.EL = BI.inherit(BI.Widget, { this.ele.populate.apply(this, arguments); } }); -BI.shortcut("bi.el", BI.EL); \ No newline at end of file +BI.shortcut("bi.el", BI.EL);