소스 검색

Button: fix disabled priority (#21375)

好多大米 3 년 전
부모
커밋
e39d4cb289
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/button/src/button.vue

+ 1 - 1
packages/button/src/button.vue

@@ -65,7 +65,7 @@
         return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
       },
       buttonDisabled() {
-        return this.disabled || (this.elForm || {}).disabled;
+        return this.$options.propsData.hasOwnProperty('disabled') ? this.disabled : (this.elForm || {}).disabled;
       }
     },