diff --git a/docs/en-US/component/form.md b/docs/en-US/component/form.md index db0067d35c..0bbe229c7b 100644 --- a/docs/en-US/component/form.md +++ b/docs/en-US/component/form.md @@ -144,7 +144,7 @@ form/accessibility | size | Control the size of components in this form. | ^[enum]`'' \| 'large' \| 'default' \| 'small'` | — | | disabled | Whether to disable all components in this form. If set to `true`, it will override the `disabled` prop of the inner component. | ^[boolean] | false | | scroll-to-error | When validation fails, scroll to the first error form entry. | ^[boolean] | false | -| scroll-into-view-options ^(2.3.2) | When validation fails, it scrolls to the first error item based on the scrollIntoView option. [scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView). | ^[object]`Record` / ^[boolean] | true | +| scroll-into-view-options ^(2.3.2) | When validation fails, it scrolls to the first error item based on the scrollIntoView option. [scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView). | ^[object]`ScrollIntoViewOptions` / ^[boolean] | true | ### Form Events diff --git a/packages/components/form/src/form.ts b/packages/components/form/src/form.ts index 28d5a14e01..adfd57e5c1 100644 --- a/packages/components/form/src/form.ts +++ b/packages/components/form/src/form.ts @@ -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([Object, Boolean]), default: true, }, } as const)