File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 421
421
422
422
mounted () {
423
423
this .ready = true ;
424
- this .$emit (' input' , this .currentValue );
425
424
426
425
if (! this .divider ) {
427
426
this .initEvents ();
Original file line number Diff line number Diff line change 95
95
created () {
96
96
this .$on (' slotValueChange' , this .slotValueChange );
97
97
var slots = this .slots || [];
98
- this .values = [];
99
- var values = this .values ;
98
+ var values = [];
100
99
var valueIndexCount = 0 ;
101
100
slots .forEach (slot => {
102
101
if (! slot .divider ) {
103
102
slot .valueIndex = valueIndexCount++ ;
104
103
values[slot .valueIndex ] = (slot .values || [])[slot .defaultIndex || 0 ];
105
- this .slotValueChange ();
106
104
}
107
105
});
106
+ this .values = values;
107
+ this .slotValueChange ();
108
108
},
109
109
110
110
methods: {
185
185
var slots = this .slots || [];
186
186
var valueIndexCount = 0 ;
187
187
slots .forEach (function (slot ) {
188
- if (! slot .divider ) {
189
- slots .value = values[valueIndexCount];
190
- valueIndexCount = valueIndexCount + 1 ;
191
- }
188
+ if (! slot .divider ) slot .value = values[valueIndexCount++ ];
192
189
});
193
190
}
194
191
},
You can’t perform that action at this time.
0 commit comments