Merge pull request #1585 from rijn/page-current-sync

Emit current update when page changed
This commit is contained in:
Aresn 2017-08-11 14:01:45 +08:00 committed by GitHub
commit 36591bbca7
2 changed files with 8 additions and 1 deletions

View file

@ -214,6 +214,7 @@
changePage (page) {
if (this.currentPage != page) {
this.currentPage = page;
this.$emit('update:current', page);
this.$emit('on-change', page);
}
},