|
@@ -64,6 +64,7 @@ export default {
|
|
|
return this.page
|
|
|
},
|
|
|
set (val) {
|
|
|
+ this.syncStore()
|
|
|
this.$emit('update:page', val)
|
|
|
}
|
|
|
},
|
|
@@ -72,6 +73,7 @@ export default {
|
|
|
return this.limit
|
|
|
},
|
|
|
set (val) {
|
|
|
+ this.syncStore()
|
|
|
this.$emit('update:limit', val)
|
|
|
}
|
|
|
}
|
|
@@ -102,14 +104,12 @@ export default {
|
|
|
if (this.autoScroll) {
|
|
|
scrollTo(0, 800)
|
|
|
}
|
|
|
- this.syncStore()
|
|
|
},
|
|
|
handleCurrentChange (val) {
|
|
|
this.$emit('pagination', { page: val, limit: this.pageSize })
|
|
|
if (this.autoScroll) {
|
|
|
scrollTo(0, 800)
|
|
|
}
|
|
|
- this.syncStore()
|
|
|
}
|
|
|
}
|
|
|
}
|