v3.6.0 分页组件新增pagerCount属性

This commit is contained in:
YunaiV
2022-02-15 22:11:58 +08:00
parent 7bf9a85263
commit 833ac54a2f
3 changed files with 16 additions and 1 deletions

View File

@ -38,6 +38,11 @@ export default {
return [10, 20, 30, 50]
}
},
// 移动端页码按钮的数量端默认值5
pagerCount: {
type: Number,
default: document.body.clientWidth < 992 ? 5 : 7
},
layout: {
type: String,
default: 'total, sizes, prev, pager, next, jumper'