From bcff25e73c610875fcb6239e65672ca292196d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Sat, 10 Oct 2020 10:07:18 +0800 Subject: [PATCH] fix #685 --- src/components/input/input.vue | 3 ++- src/styles/components/input.less | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/input/input.vue b/src/components/input/input.vue index 0cbdf2ed..437f4b90 100644 --- a/src/components/input/input.vue +++ b/src/components/input/input.vue @@ -239,7 +239,8 @@ [`${prefixCls}-group-with-prepend`]: this.prepend, [`${prefixCls}-group-with-append`]: this.append || (this.search && this.enterButton), [`${prefixCls}-hide-icon`]: this.append, // #554 - [`${prefixCls}-with-search`]: (this.search && this.enterButton) + [`${prefixCls}-with-search`]: (this.search && this.enterButton), + [`${prefixCls}-wrapper-disabled`]: this.itemDisabled // #685 } ]; }, diff --git a/src/styles/components/input.less b/src/styles/components/input.less index 790bd0f3..70ab7ae4 100644 --- a/src/styles/components/input.less +++ b/src/styles/components/input.less @@ -179,6 +179,9 @@ color: @subsidiary-color; font-size: @font-size-small; } + &-wrapper-disabled &-word-count{ + background: @input-disabled-bg; + } &-type-textarea &-word-count{ align-items: flex-end; top: auto;