Browse Source

Pull request #2548: 无JIRA任务 feature: disabled

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

* commit 'f02a4d2e702bf7bbb3f52dc4dadd3d60a09d39ec':
  feature: disabled
  feature: disabled
es6
guy 3 years ago
parent
commit
8496952b5d
  1. 12
      src/core/4.widget.js

12
src/core/4.widget.js

@ -570,12 +570,12 @@
throw new Error("组件:组件名已存在,不能进行添加"); throw new Error("组件:组件名已存在,不能进行添加");
} }
widget._setParent && widget._setParent(this); widget._setParent && widget._setParent(this);
// if(!this.isEnabled()){ if (this.options.disabled) {
// widget._setEnable(false); widget.options && (widget.options.disabled = true);
// } }
// if(!this.isValid()){ if (this.options.invalid) {
// widget._setValid(false); widget.options && (widget.options.invalid = true);
// } }
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