doc(pagination)

This commit is contained in:
07akioni 2020-01-29 21:35:19 +08:00
parent 09c3b8d73f
commit 750c6c8484
3 changed files with 27 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Anchor
<!--single-column-->
The demo used to use some charactor names from *Hard-Boiled Wonderland and the End of the World* as anchor links, but if so there will be too wired in this page. So I rewrite them. What a pity.
## Demos
```demo
basic

View File

@ -1,9 +1,33 @@
# Pagination
<!--single-column-->
Long data's friend.
## Demos
```demo
basic
slot
quick-jumper
size-picker
disabled
```
```
## V-model
|Prop|Event|
|-|-|
|page|change|
## Props
|Name|Type|Default|Description|
|-|-|-|-|
|page|`number`|`null`||
|page-count|`number`|`null`||
|page-size|`number`|`null`||
|page-sizes|`Array<number>`|`[]`||
|show-size-picker|`boolean`|`false`||
|show-quick-jumper|`boolean`|`false`||
|page-slot|`number`|`9`||
|on-page-size-change|`(pageSize: number) => any`|`null`||
|on-change|`(page: number) => any`|`null`||
## Events
|Name|Parameters|Description|
|-|-|-|
|change|`(page: number)`||
|page-size-chagne|`(pageSize: number)`||

View File

@ -1,4 +1,5 @@
# Slot
The pagination has a property `page-slot`, try it and you will understand. It aims to solving misclicks caused by the length changing of pagination.
```html
<n-pagination
v-model="page"