errorをつぶす

This commit is contained in:
hina 2020-06-06 18:03:51 +09:00
parent edd7a6f4c8
commit b908351a35
No known key found for this signature in database
GPG Key ID: B666B2A137443F76
2 changed files with 13 additions and 3 deletions

View File

@ -25,7 +25,12 @@
>
</p>
<ul class="list-inline d-inline">
<li v-for="tag in suggestions" :class="tagClasses(tag)" @click="addTag(tag.name)">
<li
v-for="tag in suggestions"
:class="tagClasses(tag)"
@click="addTag(tag.name)"
:key="tag.name"
>
<span class="oi oi-tag"></span> {{ tag.name }}
</li>
</ul>

View File

@ -2,7 +2,12 @@
<div :class="containerClass" @click="$refs.input.focus()">
<input :name="name" type="hidden" :value="tagValue" />
<ul class="list-inline d-inline">
<li v-for="(tag, i) in tags" class="list-inline-item badge badge-primary tag-item" @click="removeTag(i)">
<li
v-for="(tag, i) in tags"
class="list-inline-item badge badge-primary tag-item"
@click="removeTag(i)"
:key="tag"
>
<span class="oi oi-tag"></span> {{ tag }} | x
</li>
</ul>
@ -65,7 +70,7 @@ export default class TagInput extends Vue {
bus.$emit('change-tag', this.tags);
}
get containerClass(): object {
get containerClass() {
return {
'form-control': true,
'h-auto': true,