From b12ff2d7663b6e675f81e192b15703be30936ae6 Mon Sep 17 00:00:00 2001 From: LinaBell <15891557205@163.com> Date: Fri, 20 Sep 2024 11:06:44 +0800 Subject: [PATCH] fix: missing the default required label style for components such as select (#4444) * 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 --- packages/@core/ui-kit/form-ui/src/form-render/form-field.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue b/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue index bcc926416b3..dd3663876a8 100644 --- a/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue +++ b/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue @@ -95,7 +95,7 @@ const shouldRequired = computed(() => { } if (isString(currentRules.value)) { - return currentRules.value === 'required'; + return ['required', 'selectRequired'].includes(currentRules.value); } let isOptional = currentRules?.value?.isOptional?.();