Page add event @on-prev and @on-next
This commit is contained in:
parent
d8d1bcb92b
commit
d8fdd9bb6a
2 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue