File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 18
18
v-bind =" $attrs"
19
19
:id =" safeId"
20
20
:class =" inputClasses"
21
- :value =" state"
22
21
@input =" onSelect($event)"
23
22
>
24
- <option v-if =" placeholder" value =" " selected disabled hidden >
23
+ <option
24
+ v-if =" placeholder"
25
+ value =" "
26
+ selected
27
+ disabled
28
+ hidden
29
+ >
25
30
{{placeholder}}
26
31
</option >
27
32
<template v-for =" (option , key ) in options " >
28
33
<option
29
34
v-if =" typeof option === 'object'"
30
35
:value =" option.value"
31
- :class =" option.class"
32
36
v-bind =" option.attrs"
33
37
:disabled =" option.disabled"
38
+ :selected =" option.value === value"
34
39
:data-key =" key"
35
40
:key =" key"
36
41
>
37
42
{{option.label || option.value}}
38
43
</option >
39
44
<option
40
45
v-else
41
- :value =" String(option)"
46
+ :value =" option"
47
+ :selected =" option === value"
42
48
:data-key =" key"
43
49
:key =" key"
44
50
>
@@ -118,6 +124,9 @@ export default {
118
124
// }
119
125
// },
120
126
computed: {
127
+ selectedItem () {
128
+
129
+ },
121
130
// classesComputedProps mixin
122
131
// haveCustomSize () {
123
132
// return ['sm','lg'].includes(this.size)
You can’t perform that action at this time.
0 commit comments