docs(scrollbar): expose update function (#2607)

This commit is contained in:
kooriookami 2021-07-22 11:18:34 +08:00 committed by GitHub
parent 2f6f5dbae0
commit b9555ea242
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 11 deletions

View File

@ -133,5 +133,6 @@ Used to replace the browser's native scrollbar.
| Method | Description | Parameters |
| ---- | ---- | ---- |
| setScrollTop | Set distance to scroll top | (scrollTop: number)
| setScrollLeft | Set distance to scroll left | (scrollLeft: number)
| setScrollTop | Set distance to scroll top | (scrollTop: number) |
| setScrollLeft | Set distance to scroll left | (scrollLeft: number) |
| update | update scrollbar state manually | — |

View File

@ -133,5 +133,6 @@ Used to replace the browser's native scrollbar.
| Method | Description | Parameters |
| ---- | ---- | ---- |
| setScrollTop | Set distance to scroll top | (scrollTop: number)
| setScrollLeft | Set distance to scroll left | (scrollLeft: number)
| setScrollTop | Set distance to scroll top | (scrollTop: number) |
| setScrollLeft | Set distance to scroll left | (scrollLeft: number) |
| update | update scrollbar state manually | — |

View File

@ -133,5 +133,6 @@ Used to replace the browser's native scrollbar.
| Method | Description | Parameters |
| ---- | ---- | ---- |
| setScrollTop | Set distance to scroll top | (scrollTop: number)
| setScrollLeft | Set distance to scroll left | (scrollLeft: number)
| setScrollTop | Set distance to scroll top | (scrollTop: number) |
| setScrollLeft | Set distance to scroll left | (scrollLeft: number) |
| update | update scrollbar state manually | — |

View File

@ -133,5 +133,6 @@ Used to replace the browser's native scrollbar.
| Method | Description | Parameters |
| ---- | ---- | ---- |
| setScrollTop | Set distance to scroll top | (scrollTop: number)
| setScrollLeft | Set distance to scroll left | (scrollLeft: number)
| setScrollTop | Set distance to scroll top | (scrollTop: number) |
| setScrollLeft | Set distance to scroll left | (scrollLeft: number) |
| update | update scrollbar state manually | — |

View File

@ -131,7 +131,8 @@
### Scrollbar Methods
| 方法名 | 说明 | 参数
| 方法名 | 说明 | 参数 |
|---------- |-------------- | --------------
| setScrollTop | 设置滚动条到顶部的距离 | (scrollTop: number)
| setScrollLeft | 设置滚动条到左边的距离 | (scrollLeft: number)
| setScrollTop | 设置滚动条到顶部的距离 | (scrollTop: number) |
| setScrollLeft | 设置滚动条到左边的距离 | (scrollLeft: number) |
| update | 手动更新滚动条状态 | — |