ant-design-vue/components/pagination/demo/index.vue

72 lines
1.5 KiB
Vue
Raw Normal View History

2017-11-07 03:57:16 +00:00
<script>
2018-03-10 14:39:12 +00:00
import Basic from './basic'
import Changer from './changer'
import Controlled from './controlled'
import CustomChanger from './custom-changer'
import ItemRender from './itemRender'
import Jump from './jump'
import Mini from './mini'
import More from './more'
import Simple from './simple'
import Total from './total'
import CN from '../index.zh-CN.md'
import US from '../index.en-US.md'
const md = {
cn: `# Pagination
采用分页的形式分隔长列表每次只加载一个页面
## 何时使用
- 当加载/渲染所有数据将花费很多时间时
- 可切换页码浏览数据
## 代码演示`,
us: `# Pagination
A long list can be divided into several pages by 'Pagination', and only one page will be loaded at a time.
## When To Use
- When it will take a long time to load/render all items.
- If you want to browse the data by navigating through pages.`,
}
2017-11-07 03:57:16 +00:00
export default {
2018-03-10 14:39:12 +00:00
render () {
return (
<div>
<md cn={md.cn} us={md.us}/>
<Basic />
<br/>
<More />
<br/>
<Changer />
<br/>
<CustomChanger />
<br/>
<Jump />
<br/>
<Mini />
<br/>
<Simple />
<br/>
<Controlled />
<br/>
<Total />
<br/>
<ItemRender />
<br/>
<api>
<template slot='cn'>
<CN/>
</template>
<US/>
</api>
</div>
)
2017-11-07 03:57:16 +00:00
},
}
</script>