mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-21 07:16:15 -04:00
feat: component base
This commit is contained in:
parent
02dafd6a2f
commit
6e0c369398
17 changed files with 1482 additions and 1006 deletions
46
components/SearchBar.vue
Normal file
46
components/SearchBar.vue
Normal file
|
@ -0,0 +1,46 @@
|
|||
<template>
|
||||
<v-autocomplete
|
||||
label="Search..."
|
||||
single-line
|
||||
append-icon="fa-search"
|
||||
color="white"
|
||||
hide-details
|
||||
:items="items"
|
||||
item-text="text"
|
||||
item-value="path"
|
||||
solo-inverted
|
||||
:filter="filter"
|
||||
clearable
|
||||
cache-items
|
||||
@change="choose"
|
||||
>
|
||||
<template v-slot:no-data>
|
||||
<v-list-item>
|
||||
<v-list-item-title>
|
||||
Search for the <strong>tool</strong> you need!
|
||||
</v-list-item-title>
|
||||
</v-list-item>
|
||||
</template>
|
||||
</v-autocomplete>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {Component, Vue} from 'nuxt-property-decorator'
|
||||
import {ToolRoutes} from '~/mixins/tool-routes'
|
||||
|
||||
@Component({
|
||||
mixins: [ToolRoutes]
|
||||
})
|
||||
export default class SearchBar extends Vue {
|
||||
title = 'IT - Tools'
|
||||
drawer = false
|
||||
items = []
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
::v-deep .v-list-item__mask{
|
||||
color: inherit !important;
|
||||
background: inherit !important;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue