is-invalid classのこと忘れてた
This commit is contained in:
parent
9471683741
commit
34cb3a1415
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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">
|
<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"
|
<li v-for="(tag, i) in tags"
|
||||||
@ -51,6 +51,14 @@
|
|||||||
this.tags.splice(index, 1);
|
this.tags.splice(index, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get containerClass(): object {
|
||||||
|
return {
|
||||||
|
"form-control": true,
|
||||||
|
"h-auto": true,
|
||||||
|
"is-invalid": this.isInvalid
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
get tagValue(): string {
|
get tagValue(): string {
|
||||||
return this.tags.join(" ");
|
return this.tags.join(" ");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user