From dcac615ded0cddc11afbe4f80483a49d384c1ad5 Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 7 Mar 2022 14:33:43 +0800 Subject: [PATCH] =?UTF-8?q?feature=EF=BC=9A=20=E5=8E=BB=E6=8E=89disabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/4.widget.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/4.widget.js b/src/core/4.widget.js index 87755a701..2d5c3d8da 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -570,12 +570,12 @@ throw new Error("组件:组件名已存在,不能进行添加"); } widget._setParent && widget._setParent(this); - if(!this.isEnabled()){ - widget._setEnable(false); - } - if(!this.isValid()){ - widget._setValid(false); - } + // if(!this.isEnabled()){ + // widget._setEnable(false); + // } + // if(!this.isValid()){ + // widget._setValid(false); + // } widget.on(BI.Events.DESTROY, function () { BI.remove(self._children, this); });