<input
type="text"
class="text-gray-100 text-xs font-bold px-5 bg-transparent border border-gray-900 border-solid rounded-xs min-h-11.5 w-full mt-5 hover:bg-black-700 hover:border-black-700 cursor-pointer transition-all focus:border-purple caret-purple" placeholder="Name..."
:value="modelValue"
@input="$emit('update:modelValue', $event.target.value)"
@keyup.enter="$emit('update:modelValue', $event.target.value)"
>
<div class="">
<InputFilterName
v-model="textName"
@keyup.enter="outputValue"
/>
</div>
export default {
name: 'NameDropDown',
data(){
textName: '',
outputValue: '',
}
},
methods: {
outputValue(){
this.outputValue = this.textName
}
}
}
</script>
<... @click.native="$emit('smthngClick')" ...>
@trClick="sortOpen = !sortOpen"
<input
type="text"
class="bg-transparent w-full px-2.5 h-7 border border-gray-900 text-gray-100 font-normal text-xs rounded-xs placeholder:text-gray-100 placeholder:font-normal placeholder:text-xs focus:border-purple caret-purple hover:bg-black-700 hover:border-black-700 hover:border hover:cursor-pointer"
placeholder="Sort by..."
:modelValue="search"
@update:modelValue="$emit('update:modelValue', $event.target.value)"
>
hideSelected(e){
if (this.$el !== e.target)
this.visibelOptions = false
}