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 >>';
|
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;
|
||||||
|
|
Loading…
Reference in a new issue