Browse Source

无JIRA任务 file setEnable问题

es6
fay 3 years ago
parent
commit
34e2bd4945
  1. 7
      src/base/single/input/file.js

7
src/base/single/input/file.js

@ -1,3 +1,5 @@
// @ts-nocheck
/**
* 文件
*
@ -6,6 +8,7 @@
* @extends BI.Single
* @abstract
*/
(function (document) {
/**
@ -696,9 +699,9 @@
_setEnable: function (enable) {
BI.File.superclass._setEnable.apply(this, arguments);
if (enable === true) {
this.element.attr("disabled", "disabled");
} else {
this.element.removeAttr("disabled");
} else {
this.element.attr("disabled", "disabled");
}
}
});

Loading…
Cancel
Save