Skip to content

Commit

Permalink
fix: missing the default required label style for components such as …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
imdap committed Sep 20, 2024
1 parent c72747c commit b12ff2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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?.();
Expand Down

0 comments on commit b12ff2d

Please sign in to comment.