Browse Source

Pull request #2580: 无jira 修复invisible和disabled在_mount 过程中 this.isVisiable, this.isEnable失效问题

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

* commit 'b7c51d1ad1fce46685442c0b64c7a7cba32ac110':
  无jira 修复invisible和disabled在_mount 过程中 this.isVisiable, this.isEnable失效问题
es6
Dailer 3 years ago
parent
commit
b5bc64c075
  1. 6
      src/core/4.widget.js

6
src/core/4.widget.js

@ -299,7 +299,7 @@
_initVisual: function () {
var self = this, o = this.options;
if (o.invisible) {
var invisible = BI.isFunction(o.invisible) ? this.__watch(o.invisible, function (context, newValue) {
var invisible = o.invisible = BI.isFunction(o.invisible) ? this.__watch(o.invisible, function (context, newValue) {
self.setVisible(!newValue);
}) : o.invisible;
if (invisible) {
@ -313,7 +313,7 @@
var self = this, o = this.options;
if (o.disabled || o.invalid) {
if (this.options.disabled) {
var disabled = BI.isFunction(o.disabled) ? this.__watch(o.disabled, function (context, newValue) {
var disabled = o.disabled = BI.isFunction(o.disabled) ? this.__watch(o.disabled, function (context, newValue) {
self.setEnable(!newValue);
}) : o.disabled;
if (disabled) {
@ -321,7 +321,7 @@
}
}
if (this.options.invalid) {
var invalid = BI.isFunction(o.invalid) ? this.__watch(o.invalid, function (context, newValue) {
var invalid = o.invalid = BI.isFunction(o.invalid) ? this.__watch(o.invalid, function (context, newValue) {
self.setValid(!newValue);
}) : o.invalid;
if (invalid) {

Loading…
Cancel
Save