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

27 lines
414 B
Markdown
Raw Normal View History

2020-02-04 11:55:39 +08:00
# 禁用
```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>
2020-02-04 11:55:39 +08:00
```
```js
export default {
data () {
return {
page: 2,
pageSize: 20,
disabled: true
}
}
}
```