mirror of https://gitee.com/xiaonuobase/snowy
【新增】stable组件新增默认的每页条数(defaultPageSize)跟指定每页可以显示多少条(pageSizeOptions)配置
parent
9e480b08e3
commit
4dd22edc8d
|
@ -70,6 +70,14 @@
|
|||
type: [String, Boolean],
|
||||
default: 'auto'
|
||||
},
|
||||
defaultPageSize: {
|
||||
type: Number,
|
||||
default: 10
|
||||
},
|
||||
pageSizeOptions: {
|
||||
type: Array,
|
||||
default: () => ['10', '20', '50', '100']
|
||||
},
|
||||
/**
|
||||
* enable page URI mode
|
||||
*
|
||||
|
@ -137,6 +145,8 @@
|
|||
current: localPageNum,
|
||||
size: this.size, //this.compSize, size// 改动
|
||||
showSizeChanger: this.showSizeChanger,
|
||||
defaultPageSize: this.defaultPageSize,
|
||||
pageSizeOptions: this.pageSizeOptions,
|
||||
showTotal: (total, range) => {
|
||||
return `${range[0]}-${range[1]} 共 ${total} 条 `
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue