mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
update pagination
This commit is contained in:
@@ -116,7 +116,7 @@ export default {
|
||||
Sizes: {
|
||||
created() {
|
||||
if (Array.isArray(this.$parent.pageSizes)) {
|
||||
this.$parent.internalPageSize = this.$parent.pageSizes[0];
|
||||
this.$parent.internalPageSize = this.$parent.pageSizes.indexOf(this.$parent.pageSize) > -1 ? this.$parent.pageSize : this.$parent.pageSizes[0];
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user