File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 2
2
<div class =" md-table-pagination" >
3
3
<span class =" md-table-pagination-label" >{{ mdLabel }}:</span >
4
4
5
- <md-select v-model =" currentSize" md-menu-class =" md-pagination-select" @change =" changeSize" v-if =" mdPageOptions" >
5
+ <md-select v-model =" currentSize" md-menu-class =" md-pagination-select" @change =" changeSize" v-if =" mdPageOptions !== false " >
6
6
<md-option v-for =" amount in mdPageOptions" :key =" amount" :value =" amount" >{{ amount }}</md-option >
7
7
</md-select >
8
8
26
26
type: [Number , String ],
27
27
default: 10
28
28
},
29
- mdPageOptions: [Array , Boolean ],
29
+ mdPageOptions: {
30
+ type: [Array , Boolean ],
31
+ default : () => [10 , 25 , 50 , 100 ]
32
+ },
30
33
mdPage: {
31
34
type: [Number , String ],
32
35
default: 1
110
113
},
111
114
mounted () {
112
115
this .$nextTick (() => {
113
- this .mdPageOptions = this .mdPageOptions || [10 , 25 , 50 , 100 ];
114
- this .currentSize = this .mdPageOptions .includes (this .currentSize ) ? this .currentSize : this .mdPageOptions [0 ];
116
+ if (this .mdPageOptions ) {
117
+ this .currentSize = this .mdPageOptions .includes (this .currentSize ) ? this .currentSize : this .mdPageOptions [0 ];
118
+ } else {
119
+ this .currentSize = 0 ;
120
+ }
115
121
this .canFireEvents = true ;
116
122
});
117
123
}
You can’t perform that action at this time.
0 commit comments