is-invalid classのこと忘れてた

This commit is contained in:
shibafu 2019-06-05 00:50:47 +09:00
parent 9471683741
commit 34cb3a1415

View File

@ -1,5 +1,5 @@
<template>
<div class="form-control h-auto" @click="$refs.input.focus()">
<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"
@ -51,6 +51,14 @@
this.tags.splice(index, 1);
}
get containerClass(): object {
return {
"form-control": true,
"h-auto": true,
"is-invalid": this.isInvalid
};
}
get tagValue(): string {
return this.tags.join(" ");
}