fix: [component:vc-pagination]emit change.current before change (#2567)
It's better to emit 'change.current' before 'change' event, so that onChange handler can use v-model value correctly.pull/2584/head
parent
922bcb05e7
commit
f886f04634
|
@ -259,8 +259,8 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// this.$emit('input', page)
|
// this.$emit('input', page)
|
||||||
this.$emit('change', page, this.statePageSize);
|
|
||||||
this.$emit('change.current', page, this.statePageSize);
|
this.$emit('change.current', page, this.statePageSize);
|
||||||
|
this.$emit('change', page, this.statePageSize);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
return this.stateCurrent;
|
return this.stateCurrent;
|
||||||
|
|
Loading…
Reference in New Issue