ant-design-vue/components/back-top/demo/index.vue

41 lines
942 B
Vue
Raw Normal View History

2018-03-05 19:05:23 +08:00
<script>
import Basic from './basic'
import Custom from './custom'
import CN from '../index.zh-CN.md'
import US from '../index.en-US.md'
const md = {
cn: `# BackTop 回到顶部
返回页面顶部的操作按钮
## 何时使用
- 当页面内容区域比较长时
- 当用户需要频繁返回顶部查看相关内容时
## 代码演示`,
us: `# BackTop
\`BackTop\` makes it easy to go back to the top of the page.
## When To Use
- When the page content is very long.
- When you need to go back to the top very frequently in order to view the contents.
2018-03-20 21:48:01 +08:00
## Examples
2018-03-05 19:05:23 +08:00
`,
}
export default {
2018-03-20 21:48:01 +08:00
category: 'Components',
type: 'Other',
subtitle: '回到顶部',
title: 'BackTop',
2018-03-05 19:05:23 +08:00
render () {
return (
<div>
<md cn={md.cn} us={md.us}/>
<Basic />
<Custom />
<api>
<CN slot='cn' />
<US/>
</api>
</div>
)
},
}
</script>