Browse Source

Pull request #2543: 无JIRA任务,disabled

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit '9cc6a08a292d982ae8ff39d3791e514da47d21cf':
  feature: disabled
  feature: disabled
es6
guy 3 years ago
parent
commit
a25eee7bbd
  1. 6
      src/core/4.widget.js

6
src/core/4.widget.js

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

Loading…
Cancel
Save