2020-02-04 11:55:39 +08:00
|
|
|
# Page Slot
|
2020-12-12 14:44:44 +08:00
|
|
|
|
2020-01-29 21:35:19 +08:00
|
|
|
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.
|
2020-12-12 14:44:44 +08:00
|
|
|
|
2019-10-16 23:43:07 +08:00
|
|
|
```html
|
2020-10-22 16:39:42 +08:00
|
|
|
<n-space vertical>
|
2020-12-12 14:44:44 +08:00
|
|
|
<n-pagination v-model:page="page" :page-count="100" />
|
|
|
|
<n-pagination v-model:page="page" :page-count="100" :page-slot="8" />
|
|
|
|
<n-pagination v-model:page="page" :page-count="100" :page-slot="7" />
|
2020-10-22 16:39:42 +08:00
|
|
|
</n-space>
|
2019-10-16 23:43:07 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
```js
|
|
|
|
export default {
|
2020-12-12 14:44:44 +08:00
|
|
|
data() {
|
2019-10-16 23:43:07 +08:00
|
|
|
return {
|
|
|
|
page: 2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
```css
|
|
|
|
.n-pagination {
|
|
|
|
margin-bottom: 12px;
|
|
|
|
}
|
2020-12-12 14:44:44 +08:00
|
|
|
```
|