docs: update Tree method scrollTo params (#28579)

* docs: update scrollTo params

* docs: update scrollTo params in en-US doc
This commit is contained in:
Troy Li 2020-12-28 09:19:17 -05:00 committed by GitHub
parent c04070072b
commit 7290ef49f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ Before `3.4.0`: The number of treeNodes can be very large, but when `checkable=t
| Name | Description |
| ----------------- | ------------------------------------ |
| scrollTo({ key }) | Scroll to key item in virtual scroll |
| scrollTo({ key: string | number; align?: 'top' | 'bottom' | 'auto'; offset?: number }) | Scroll to key item in virtual scroll |
## FAQ

View File

@ -99,7 +99,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/Xh-oWqg9k/Tree.svg
| 名称 | 说明 |
| ----------------- | ------------------------------- |
| scrollTo({ key }) | 虚拟滚动下,滚动到指定 key 条目 |
| scrollTo({ key: string | number; align?: 'top' | 'bottom' | 'auto'; offset?: number }) | 虚拟滚动下,滚动到指定 key 条目 |
## FAQ