add .sync support for Dialog and Pagination

This commit is contained in:
Leopoldthecoder
2017-04-29 16:30:08 +08:00
committed by 杨奕
parent d6265daf73
commit defd128f54
13 changed files with 59 additions and 85 deletions

View File

@@ -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);
}
},