From 34e2bd494527f2be8ccd392303bda576e89ffe08 Mon Sep 17 00:00:00 2001 From: fay Date: Fri, 14 Jan 2022 10:20:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20file=20se?= =?UTF-8?q?tEnable=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/input/file.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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"); } } }); From ddac71d40431ed3b1c3518345aa2913fbbf204f0 Mon Sep 17 00:00:00 2001 From: fay Date: Fri, 14 Jan 2022 10:22:41 +0800 Subject: [PATCH 2/2] format --- src/base/single/input/file.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index d0c51577f..e9b1a5a2a 100644 --- a/src/base/single/input/file.js +++ b/src/base/single/input/file.js @@ -1,5 +1,3 @@ -// @ts-nocheck - /** * 文件 * @@ -8,7 +6,6 @@ * @extends BI.Single * @abstract */ - (function (document) { /**