Explorar o código

Input: disabled Input should not show clear icon (#10331)

杨奕 %!s(int64=7) %!d(string=hai) anos
pai
achega
430c149d88
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/input/src/input.vue

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

@@ -197,7 +197,7 @@
         return this.$slots.prepend || this.$slots.append;
       },
       showClear() {
-        return this.clearable && this.currentValue !== '' && (this.focused || this.hovering);
+        return this.clearable && !this.disabled && this.currentValue !== '' && (this.focused || this.hovering);
       }
     },