浏览代码

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;
       }
     },