Browse Source

feature: 去掉disabled

es6
guy 2 years ago
parent
commit
dcac615ded
  1. 12
      src/core/4.widget.js

12
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);
});

Loading…
Cancel
Save