mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-17 21:32:51 +08:00
refactor(components): [form] enhance scrollIntoViewOptions
type (#21552)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user