File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed
src/components/CheckController Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 52
52
<div >
53
53
<label >deep</label >
54
54
<select v-model =" deep" >
55
- <option :value =" 2" >
56
- 2
57
- </option >
58
- <option :value =" 3" >
59
- 3
60
- </option >
61
- <option :value =" 4" >
62
- 4
63
- </option >
55
+ <option :value =" 2" >2</option >
56
+ <option :value =" 3" >3</option >
57
+ <option :value =" 4" >4</option >
64
58
</select >
65
59
</div >
66
60
<div >
Original file line number Diff line number Diff line change 3
3
<label :class =" [`vjs-check-controller`, checked ? 'is-checked' : '']" @click.stop >
4
4
<span :class =" `vjs-check-controller__inner is-${uiType}`" />
5
5
<input
6
- v-model =" model"
6
+ :checked =" model"
7
7
:class =" `vjs-check-controller__original is-${uiType}`"
8
8
:type =" uiType"
9
9
@change =" $emit('change', model)"
10
- @focus =" focus = true"
11
- @blur =" focus = false"
12
10
/>
13
11
</label >
14
12
</template >
@@ -24,11 +22,6 @@ export default {
24
22
},
25
23
isMultiple: Boolean ,
26
24
},
27
- data () {
28
- return {
29
- focus: false ,
30
- };
31
- },
32
25
computed: {
33
26
uiType () {
34
27
return this .isMultiple ? ' checkbox' : ' radio' ;
You can’t perform that action at this time.
0 commit comments