Page add event @on-prev and @on-next

This commit is contained in:
梁灏 2021-09-07 11:17:32 +08:00
parent d8d1bcb92b
commit d8fdd9bb6a
2 changed files with 9 additions and 1 deletions

View file

@ -260,6 +260,7 @@
return false;
}
this.changePage(current - 1);
this.$emit('on-prev', current - 1);
},
next () {
if (this.disabled) return;
@ -268,6 +269,7 @@
return false;
}
this.changePage(current + 1);
this.$emit('on-next', current + 1);
},
fastPrev () {
if (this.disabled) return;