File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 23
23
@keydown.native.prevent.enter =" addChip"
24
24
@keydown.native.prevent.186 =" addChip"
25
25
tabindex =" 0"
26
+ :debounce =" 0"
26
27
ref =" input" >
27
28
</md-input >
28
29
Original file line number Diff line number Diff line change 4
4
5
5
<span class =" md-count" v-if =" enableCounter" >{{ inputLength }} / {{ counterLength }}</span >
6
6
7
- <md-button class =" md-icon-button md-toggle-password" @click =" togglePasswordType" v-if =" mdHasPassword" >
7
+ <md-button tabindex = " -1 " class =" md-icon-button md-toggle-password" @click =" togglePasswordType" v-if =" mdHasPassword" >
8
8
<md-icon >{{ showPassword ? 'visibility_off' : 'visibility' }}</md-icon >
9
9
</md-button >
10
10
11
- <md-button class =" md-icon-button md-clear-input" @click =" clearInput" v-if =" mdClearable && hasValue" >
11
+ <md-button tabindex = " -1 " class =" md-icon-button md-clear-input" @click =" clearInput" v-if =" mdClearable && hasValue" >
12
12
<md-icon >clear</md-icon >
13
13
</md-button >
14
14
</div >
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