diff --git a/packages/web-vue/components/input/__test__/__snapshots__/demo.test.ts.snap b/packages/web-vue/components/input/__test__/__snapshots__/demo.test.ts.snap index 1e39d919e..11c83a8df 100644 --- a/packages/web-vue/components/input/__test__/__snapshots__/demo.test.ts.snap +++ b/packages/web-vue/components/input/__test__/__snapshots__/demo.test.ts.snap @@ -28,8 +28,16 @@ exports[` demo: render [group] correctly 1`] = ` `; exports[` demo: render [password] correctly 1`] = ` -" -" +"
+ +
+ +
+ +
+
" `; exports[` demo: render [prefix] correctly 1`] = ` diff --git a/packages/web-vue/components/input/style/group.less b/packages/web-vue/components/input/style/group.less index 0249184d6..cccca8ba2 100644 --- a/packages/web-vue/components/input/style/group.less +++ b/packages/web-vue/components/input/style/group.less @@ -52,4 +52,11 @@ border-right-color: @input-color-border_focus; } } + + // 针对Error状态的input边框颜色处理 + > .@{input-prefix-cls}-wrapper.@{input-prefix-cls}-error:not(:last-child) { + &:focus-within { + border-right-color: @input-color-border_error_focus; + } + } } diff --git a/packages/web-vue/components/input/style/input.less b/packages/web-vue/components/input/style/input.less index ba7c6ea95..e393a5291 100644 --- a/packages/web-vue/components/input/style/input.less +++ b/packages/web-vue/components/input/style/input.less @@ -46,6 +46,7 @@ &:focus-within, &.@{cls}-focus { + z-index: 1; background-color: @input-color-bg_focus; border-color: @input-color-border_focus; box-shadow: 0 0 0 @input-size-shadow_focus @input-color-shadow_focus; @@ -83,6 +84,7 @@ &.@{cls}-error:focus-within, &.@{cls}-error&-focus { + z-index: 1; background-color: @input-color-bg_error_focus; border-color: @input-color-border_error_focus; box-shadow: 0 0 0 @input-size-shadow_error_focus