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.
ant-design-vue/components/float-button/demo/back-top.vue

32 lines
539 B

<docs>
---
order: 7
iframe: 360
title:
zh-CN: 回到顶部
en-US: BackTop
---
## zh-CN
返回页面顶部的操作按钮
## en-US
`BackTop` makes it easy to go back to the top of the page.
</docs>
<template>
<div :style="{ height: '500vh', padding: '10px' }">
<div>Scroll to bottom</div>
<div>Scroll to bottom</div>
<div>Scroll to bottom</div>
<div>Scroll to bottom</div>
<div>Scroll to bottom</div>
<div>Scroll to bottom</div>
<div>Scroll to bottom</div>
<a-back-top />
</div>
</template>