File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export default defineComponent({
29
29
newChecked . push ( value )
30
30
this . $emit ( 'update:modelValue' , newChecked )
31
31
} ,
32
- removeTag ( tag : string ) {
32
+ removeTag ( tag : any ) {
33
33
const newChecked = ( this . modelValue as string [ ] ) . filter ( ( x : string ) => x !== tag ) ;
34
34
this . $emit ( 'update:modelValue' , newChecked )
35
35
} ,
Original file line number Diff line number Diff line change 10
10
>
11
11
</div >
12
12
<div class =" vfb-group vfb-buttons" v-show =" modelValue.length" >
13
+ <!-- @vue-ignore -->
13
14
<button
14
- class =" vfb-tag"
15
- v-for =" (value) in modelValue" :key =" value"
15
+ v-for =" (value,i) in modelValue" :key =" i"
16
16
@click =" removeTag(value)"
17
+ class =" vfb-tag"
17
18
>
18
19
<span > {{ value}} </span >
19
20
<span class =" vfb-tag-x" >x</span >
You can’t perform that action at this time.
0 commit comments