Browse Source

feature: disabled

es6
guy 3 years ago
parent
commit
36dd2ba61c
  1. 3
      src/core/4.widget.js

3
src/core/4.widget.js

@ -570,6 +570,9 @@
throw new Error("组件:组件名已存在,不能进行添加");
}
widget._setParent && widget._setParent(this);
if(!this.isEnabled()){
widget._setEnable(false);
}
widget.on(BI.Events.DESTROY, function () {
BI.remove(self._children, this);
});

Loading…
Cancel
Save