Skip to content

Commit ed5ec66

Browse files
committed
fix: VfbTags type error in template
1 parent 6089f2b commit ed5ec66

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/VfbTags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default defineComponent({
2929
newChecked.push(value)
3030
this.$emit('update:modelValue', newChecked)
3131
},
32-
removeTag(tag: string) {
32+
removeTag(tag: any) {
3333
const newChecked = (this.modelValue as string[]).filter((x: string) => x !== tag);
3434
this.$emit('update:modelValue', newChecked)
3535
},

src/components/VfbTags.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
>
1111
</div>
1212
<div class="vfb-group vfb-buttons" v-show="modelValue.length">
13+
<!-- @vue-ignore -->
1314
<button
14-
class="vfb-tag"
15-
v-for="(value) in modelValue" :key="value"
15+
v-for="(value,i) in modelValue" :key="i"
1616
@click="removeTag(value)"
17+
class="vfb-tag"
1718
>
1819
<span> {{ value}} </span>
1920
<span class="vfb-tag-x">x</span>

0 commit comments

Comments
 (0)