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
pull/48/MERGE
LinaBell 2024-09-20 11:06:44 +08:00 committed by GitHub
parent c72747c649
commit b12ff2d766
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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?.();