fix: hover border style same as antd style when validate error (#4409)

* fix: hover border style same as antd style when validate error

* fix: hover border style same as antd style when validate error

---------
pull/48/MERGE
LinaBell 2024-09-19 17:39:26 +08:00 committed by GitHub
parent d574fb8b6d
commit f25783933d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -264,7 +264,8 @@ function createComponentProps(slotProps: Record<string, any>) {
<component
:is="fieldComponent"
:class="{
'border-destructive focus:border-destructive': isInValid,
'border-destructive focus:border-destructive hover:border-destructive/80':
isInValid,
}"
v-bind="createComponentProps(slotProps)"
:disabled="shouldDisabled"