refactor(components): [form] enhance scrollIntoViewOptions type (#21552)

This commit is contained in:
Zhong
2025-07-31 09:20:07 +08:00
committed by GitHub
parent 3182010562
commit 09df413426
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ export const formProps = buildProps({
* @description When validation fails, it scrolls to the first error item based on the scrollIntoView option.
*/
scrollIntoViewOptions: {
type: [Object, Boolean],
type: definePropType<ScrollIntoViewOptions | boolean>([Object, Boolean]),
default: true,
},
} as const)