errorをつぶす
This commit is contained in:
parent
edd7a6f4c8
commit
b908351a35
@ -25,7 +25,12 @@
|
|||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
<ul class="list-inline d-inline">
|
<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 }}
|
<span class="oi oi-tag"></span> {{ tag.name }}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
<div :class="containerClass" @click="$refs.input.focus()">
|
<div :class="containerClass" @click="$refs.input.focus()">
|
||||||
<input :name="name" type="hidden" :value="tagValue" />
|
<input :name="name" type="hidden" :value="tagValue" />
|
||||||
<ul class="list-inline d-inline">
|
<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
|
<span class="oi oi-tag"></span> {{ tag }} | x
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -65,7 +70,7 @@ export default class TagInput extends Vue {
|
|||||||
bus.$emit('change-tag', this.tags);
|
bus.$emit('change-tag', this.tags);
|
||||||
}
|
}
|
||||||
|
|
||||||
get containerClass(): object {
|
get containerClass() {
|
||||||
return {
|
return {
|
||||||
'form-control': true,
|
'form-control': true,
|
||||||
'h-auto': true,
|
'h-auto': true,
|
||||||
|
Loading…
Reference in New Issue
Block a user