Просмотр исходного кода

fix: the focus style and antd of the input box validation failure should be consistent (#4446)

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

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

* feat(@vben-core/form-ui): Default form validation rules applicable to selector components

* fix: Missing the default required label style for components such as select

* fix: the focus style and antd of the input box validation failure should be consistent

* fix: the focus style and antd of the input box validation failure should be consistent

---------

Co-authored-by: vince <vince292007@gmail.com>
LinaBell 1 год назад
Родитель
Сommit
ace942e2df
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/@core/ui-kit/form-ui/src/form-render/form-field.vue

+ 1 - 1
packages/@core/ui-kit/form-ui/src/form-render/form-field.vue

@@ -264,7 +264,7 @@ function createComponentProps(slotProps: Record<string, any>) {
             <component
               :is="fieldComponent"
               :class="{
-                'border-destructive focus:border-destructive hover:border-destructive/80':
+                'border-destructive focus:border-destructive hover:border-destructive/80 focus:shadow-[0_0_0_2px_rgba(255,38,5,0.06)]':
                   isInValid,
               }"
               v-bind="createComponentProps(slotProps)"