This commit is contained in:
taehoon 2019-04-02 16:46:40 -04:00
parent d874ca905c
commit 329dc833b3

View File

@ -2,8 +2,7 @@
<div class="autosuggest" v-click-outside="onClickOutside"> <div class="autosuggest" v-click-outside="onClickOutside">
<input v-model="term" :placeholder="placeholder" @click="onInputClick" class="autosuggest-input" /> <input v-model="term" :placeholder="placeholder" @click="onInputClick" class="autosuggest-input" />
<div class="autosuggest-results" v-if="resultsVisible && filtered.length > 0"> <div class="autosuggest-results" v-if="resultsVisible && filtered.length > 0">
<slot v-for="item in filtered" :item="item"> <slot v-for="item in filtered" :item="item" />
</slot>
</div> </div>
</div> </div>
</template> </template>