You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
674 B
25 lines
674 B
9 years ago
|
---
|
||
|
category: Components
|
||
|
type: Other
|
||
8 years ago
|
chinese: 置顶
|
||
9 years ago
|
english: BackTop
|
||
|
---
|
||
|
|
||
9 years ago
|
使用置顶组件可以方便地回到页面顶部。
|
||
9 years ago
|
|
||
|
## 何时使用
|
||
|
|
||
9 years ago
|
- 当页面内容区域比较长时;
|
||
|
- 当用户需要频繁返回顶部查看相关内容时。
|
||
9 years ago
|
|
||
|
## API
|
||
|
|
||
|
> 有默认样式,距离底部 `50px`,可覆盖。
|
||
8 years ago
|
|
||
9 years ago
|
> 自定义样式宽高不大于 40px * 40px。
|
||
9 years ago
|
|
||
|
| 参数 | 说明 | 类型 | 默认值 |
|
||
|
|-------------|----------------|--------------------|--------------|
|
||
|
| visibilityHeight | 滚动高度达到此参数值才出现 `BackTop` | Number | 400 |
|
||
|
| onClick | 点击按钮的回调函数 | Function | - |
|