mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-01 13:36:55 +08:00
doc(pagination)
This commit is contained in:
parent
09c3b8d73f
commit
750c6c8484
@ -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
|
||||
|
@ -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)`||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user