Jelajahi Sumber

Merge branch 'master' of http://192.168.0.115:3000/bill/fuse-code

xzw 3 tahun lalu
induk
melakukan
6cda0758dc
1 mengubah file dengan 8 tambahan dan 1 penghapusan
  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)))