From 7290ef49f4e0ad5262fa24d32687aba5c9ed517e Mon Sep 17 00:00:00 2001 From: Troy Li Date: Mon, 28 Dec 2020 09:19:17 -0500 Subject: [PATCH] docs: update Tree method scrollTo params (#28579) * docs: update scrollTo params * docs: update scrollTo params in en-US doc --- components/tree/index.en-US.md | 2 +- components/tree/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/tree/index.en-US.md b/components/tree/index.en-US.md index 6c63345105..cad5b10b26 100644 --- a/components/tree/index.en-US.md +++ b/components/tree/index.en-US.md @@ -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 diff --git a/components/tree/index.zh-CN.md b/components/tree/index.zh-CN.md index af893ed64d..e448b4c906 100644 --- a/components/tree/index.zh-CN.md +++ b/components/tree/index.zh-CN.md @@ -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