naive-ui/demo/documentation/components/pagination/enUS/disabled.demo.md

28 lines
417 B
Markdown
Raw Normal View History

2019-10-12 23:55:50 +08:00
# Disabled
```html
2020-10-22 16:39:42 +08:00
<n-space vertical>
<n-pagination
v-model:page="page"
v-model:page-size="pageSize"
:page-count="100"
show-size-picker
:page-sizes="[10, 20, 30, 40]"
show-quick-jumper
:disabled="disabled"
/>
<n-switch v-model:value="disabled" />
</n-space>
2019-10-12 23:55:50 +08:00
```
```js
export default {
data () {
return {
page: 2,
pageSize: 20,
disabled: true
}
}
}
```