|
@@ -12,11 +12,17 @@
|
|
|
<template #icon>
|
|
|
<ui-icon
|
|
|
ctrl
|
|
|
+ type="search"
|
|
|
+ @click="showSearch = !showSearch"
|
|
|
+ style="margin-right: 10px"
|
|
|
+ />
|
|
|
+ <ui-icon
|
|
|
+ ctrl
|
|
|
:type="custom.showTaggings ? 'eye-s' : 'eye-n'"
|
|
|
@click="custom.showTaggings = !custom.showTaggings"
|
|
|
/>
|
|
|
</template>
|
|
|
- <ui-group-option>
|
|
|
+ <ui-group-option v-if="showSearch">
|
|
|
<ui-input type="text" width="100%" placeholder="搜索" v-model="keyword">
|
|
|
<template #preIcon>
|
|
|
<ui-icon type="search" />
|
|
@@ -64,6 +70,7 @@ import {
|
|
|
save
|
|
|
} from '@/store'
|
|
|
|
|
|
+const showSearch = ref(false)
|
|
|
const keyword = ref('')
|
|
|
const filterTaggings = computed(() => taggings.value.filter(tagging => tagging.title.includes(keyword.value)))
|
|
|
|