Skip to content
This repository was archived by the owner on Nov 26, 2021. It is now read-only.

Commit 7f6bb54

Browse files
committed
fire pagination event on vuex
1 parent 2307acc commit 7f6bb54

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

compiled/state/vuex.js

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ function _default(source) {
9292
});
9393
},
9494
setPage: function setPage(page) {
95+
this.dispatch('pagination', page);
9596
this.commit("PAGINATE", page);
9697
}
9798
}

lib/state/vuex.js

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export default function (source) {
7878
this.commit('SORT', {column, ascending});
7979
},
8080
setPage: function (page) {
81+
this.dispatch('pagination', page);
8182
this.commit(`PAGINATE`, page);
8283
}
8384

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-tables-2",
33
"description": "Vue.js 2 grid components",
4-
"version": "2.0.13",
4+
"version": "2.0.14",
55
"keywords": [
66
"vue2",
77
"vuex",

0 commit comments

Comments
 (0)