mirror of https://github.com/ElemeFE/element
Pagination: assign 1 to default page count (#12525)
parent
ec6cac4232
commit
df76542703
|
@ -261,9 +261,9 @@ export default {
|
|||
}
|
||||
},
|
||||
reassignMaxValue(value) {
|
||||
var internalPageCount = this.$parent.internalPageCount;
|
||||
const { internalPageCount } = this.$parent;
|
||||
if (+value > internalPageCount) {
|
||||
this.$refs.input.setCurrentValue(internalPageCount);
|
||||
this.$refs.input.setCurrentValue(internalPageCount || 1);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue