diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index 904fbfcf5..d0c51577f 100644 --- a/src/base/single/input/file.js +++ b/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"); } } });