Commit 40f43312 authored by Regis's avatar Regis

strict props for easier re-use

parent 2dfb7e88
...@@ -12,10 +12,16 @@ ...@@ -12,10 +12,16 @@
const LAST = 'Last >>'; const LAST = 'Last >>';
gl.VueGlPagination = Vue.extend({ gl.VueGlPagination = Vue.extend({
props: [ props: {
'change', change: {
'pageInfo', type: Function,
], required: true,
},
pageInfo: {
type: Object,
required: true,
},
},
methods: { methods: {
changePage(e) { changePage(e) {
let pageNum = this.pageInfo.page; let pageNum = this.pageInfo.page;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment