mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
add .sync support for Dialog and Pagination
This commit is contained in:
@@ -312,10 +312,12 @@ export default {
|
||||
this.$nextTick(() => {
|
||||
this.internalCurrentPage = newVal;
|
||||
if (oldVal !== newVal) {
|
||||
this.$emit('update:currentPage', newVal);
|
||||
this.$emit('current-change', this.internalCurrentPage);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.$emit('update:currentPage', newVal);
|
||||
this.$emit('current-change', this.internalCurrentPage);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user