strict props for easier re-use

This commit is contained in:
Regis 2016-12-15 10:28:17 -07:00
parent 2dfb7e8826
commit 40f433125e

View file

@ -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;