From 97bb96090f778c25d29fb96c16d7fc22d7b1af1e Mon Sep 17 00:00:00 2001 From: wy187819 Date: Fri, 11 Nov 2022 16:33:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dbutton=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E4=B8=A2=E5=A4=B1=E5=93=8D=E5=BA=94=E5=BC=8F=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/button/src/button.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/button/src/button.vue b/packages/button/src/button.vue index 6ed8d23d6..56ae88703 100644 --- a/packages/button/src/button.vue +++ b/packages/button/src/button.vue @@ -65,7 +65,8 @@ return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size; }, buttonDisabled() { - return this.$options.propsData.hasOwnProperty('disabled') ? this.disabled : (this.elForm || {}).disabled; + const disabled = this.disabled; + return this.$options.propsData.hasOwnProperty('disabled') ? disabled : (this.elForm || {}).disabled; } },