Browse Source

Pull request #2563: 无JIRA任务 bigfix

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit 'd0d884e1f49b38df2f09cd9caa3a06a9ca0d9497':
  无JIRA任务 bigfix
es6
windy 3 years ago
parent
commit
7df5a2a38c
  1. 6
      src/core/4.widget.js

6
src/core/4.widget.js

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

Loading…
Cancel
Save