bill 3 gadi atpakaļ
vecāks
revīzija
23e971003c
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 8 1
      src/views/tagging/index.vue

+ 8 - 1
src/views/tagging/index.vue

@@ -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)))