Add global search, update filters for new filter model

This commit is contained in:
advplyr 2021-09-05 15:22:30 -05:00
parent 4420375f2a
commit 2c27fb3108
10 changed files with 164 additions and 33 deletions

View file

@ -1,5 +1,5 @@
<template>
<input v-model="input" :type="type" :disabled="disabled" autocorrect="off" autocapitalize="none" autocomplete="off" :placeholder="placeholder" class="px-2 py-1 bg-bg border border-gray-600 outline-none rounded-sm" :class="disabled ? 'text-gray-300' : 'text-white'" />
<input v-model="input" ref="input" autofocus :type="type" :disabled="disabled" autocorrect="off" autocapitalize="none" autocomplete="off" :placeholder="placeholder" class="px-2 py-1 bg-bg border border-gray-600 outline-none rounded-sm" :class="disabled ? 'text-gray-300' : 'text-white'" @keyup="keyup" />
</template>
<script>
@ -23,7 +23,19 @@ export default {
}
}
},
methods: {},
methods: {
focus() {
if (this.$refs.input) {
this.$refs.input.focus()
this.$refs.input.click()
}
},
keyup() {
if (this.$refs.input) {
this.input = this.$refs.input.value
}
}
},
mounted() {}
}
</script>