chore(deps): update dependency scroll-into-view-if-needed to v3 (#39230)

* chore(deps): update dependency scroll-into-view-if-needed to v3

* fix: ts error

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
renovate[bot] 2022-12-07 13:56:18 +08:00 committed by GitHub
parent 6b44b33eae
commit a2305aa291
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ export default function useForm<Values = any>(form?: FormInstance<Values>): [For
scrollMode: 'if-needed',
block: 'nearest',
...options,
});
} as any);
}
},
getFieldInstance: (name: NamePath) => {

View File

@ -1,3 +1,3 @@
export { InternalNamePath, NamePath, Store, StoreValue } from 'rc-field-form/lib/interface';
export { Options as ScrollOptions } from 'scroll-into-view-if-needed';
export type { InternalNamePath, NamePath, Store, StoreValue } from 'rc-field-form/lib/interface';
export type { Options as ScrollOptions } from 'scroll-into-view-if-needed';
export type FormLabelAlign = 'left' | 'right';

View File

@ -153,7 +153,7 @@
"rc-trigger": "^5.2.10",
"rc-upload": "~4.3.0",
"rc-util": "^5.25.2",
"scroll-into-view-if-needed": "^2.2.25",
"scroll-into-view-if-needed": "^3.0.3",
"shallowequal": "^1.1.0"
},
"devDependencies": {