インラインスタイルをスコープCSSに追い出した
This commit is contained in:
parent
0670cb8736
commit
c7d88076fa
@ -2,14 +2,13 @@
|
|||||||
<div class="form-control h-auto" @click="$refs.input.focus()">
|
<div class="form-control h-auto" @click="$refs.input.focus()">
|
||||||
<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"
|
||||||
class="list-inline-item badge badge-primary"
|
class="list-inline-item badge badge-primary tag-item"
|
||||||
style="cursor: pointer;"
|
|
||||||
@click="removeTag(i)"><span class="oi oi-tag"></span> {{ tag }} | x</li>
|
@click="removeTag(i)"><span class="oi oi-tag"></span> {{ tag }} | x</li>
|
||||||
</ul>
|
</ul>
|
||||||
<input :id="id"
|
<input :id="id"
|
||||||
ref="input"
|
ref="input"
|
||||||
type="text"
|
type="text"
|
||||||
style="border: 0; outline: 0;"
|
class="tag-input"
|
||||||
v-model="buffer"
|
v-model="buffer"
|
||||||
@keydown="onKeyDown">
|
@keydown="onKeyDown">
|
||||||
</div>
|
</div>
|
||||||
@ -75,3 +74,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.tag-item {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag-input {
|
||||||
|
border: 0;
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in New Issue
Block a user