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 selectpull/48/MERGE
parent
c72747c649
commit
b12ff2d766
|
@ -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?.();
|
||||
|
|
Loading…
Reference in New Issue