Back top
A button to back to top.
Basic usage
Backtop Attributes
Name | Description | Type | Default |
---|---|---|---|
target | the target to trigger scroll | string | — |
visibility-height | the button will not show until the scroll height reaches this value | number | 240 |
right | right distance | number | 24 |
bottom | bottom distance | number | 24 |
Backtop Events
Name | Description | Parameters |
---|---|---|
click | triggers when click. | (evt: MouseEvent) => void |
Backtop Slots
Name | Description |
---|---|
default | customize default content. |