strict props for easier re-use
This commit is contained in:
parent
2dfb7e8826
commit
40f433125e
1 changed files with 10 additions and 4 deletions
|
@ -12,10 +12,16 @@
|
|||
const LAST = 'Last >>';
|
||||
|
||||
gl.VueGlPagination = Vue.extend({
|
||||
props: [
|
||||
'change',
|
||||
'pageInfo',
|
||||
],
|
||||
props: {
|
||||
change: {
|
||||
type: Function,
|
||||
required: true,
|
||||
},
|
||||
pageInfo: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
changePage(e) {
|
||||
let pageNum = this.pageInfo.page;
|
||||
|
|
Loading…
Reference in a new issue