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 = {
|
2018-09-05 13:28:54 +00:00
|
|
|
|
cn: `# Pagination 分页
|
2018-03-10 14:39:12 +00:00
|
|
|
|
|
|
|
|
|
采用分页的形式分隔长列表,每次只加载一个页面。
|
|
|
|
|
|
|
|
|
|
## 何时使用
|
|
|
|
|
|
|
|
|
|
- 当加载/渲染所有数据将花费很多时间时;
|
|
|
|
|
- 可切换页码浏览数据。
|
|
|
|
|
|
|
|
|
|
## 代码演示`,
|
|
|
|
|
|
|
|
|
|
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.
|
2018-03-20 13:48:01 +00:00
|
|
|
|
- If you want to browse the data by navigating through pages.
|
|
|
|
|
## Examples `,
|
2018-03-10 14:39:12 +00:00
|
|
|
|
}
|
2017-11-07 03:57:16 +00:00
|
|
|
|
export default {
|
2018-03-20 13:48:01 +00:00
|
|
|
|
category: 'Components',
|
|
|
|
|
subtitle: '分页',
|
|
|
|
|
type: 'Navigation',
|
|
|
|
|
title: 'Pagination',
|
|
|
|
|
cols: 1,
|
2018-03-10 14:39:12 +00:00
|
|
|
|
render () {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<md cn={md.cn} us={md.us}/>
|
|
|
|
|
<Basic />
|
|
|
|
|
<More />
|
|
|
|
|
<Changer />
|
|
|
|
|
<CustomChanger />
|
|
|
|
|
<Jump />
|
|
|
|
|
<Mini />
|
|
|
|
|
<Simple />
|
|
|
|
|
<Controlled />
|
|
|
|
|
<Total />
|
|
|
|
|
<ItemRender />
|
|
|
|
|
<api>
|
|
|
|
|
<template slot='cn'>
|
|
|
|
|
<CN/>
|
|
|
|
|
</template>
|
|
|
|
|
<US/>
|
|
|
|
|
</api>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2017-11-07 03:57:16 +00:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|