Commit b12ff2d7 by LinaBell Committed by GitHub

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
1 parent c72747c6
......@@ -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?.();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!