caner 1 year ago
parent
commit
24aeafe5f7
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/App.vue
  2. 2 2
      src/components/head.vue

+ 1 - 1
src/App.vue

@@ -26,7 +26,7 @@ import { FormData } from '@/components/edit.vue'
 const showAdd = ref(false)
 const tabs = ref([
   {
-    label: 'Home', icon: 'home', size: 15
+    label: 'Home', icon: 'home', size: 14
   }
 ] as FormData[])
 const selectKey = ref(0)

+ 2 - 2
src/components/head.vue

@@ -11,7 +11,7 @@
         <div
           class="head-items-item"
           :class="{ active: index === selectTab }"
-          @click.stop="e=>onChange(index, 'change')"
+          @click.stop="e => onChange(index, 'change')"
         >
           <div>
             <div>
@@ -22,7 +22,7 @@
               {{ item.label }}
             </div>
             <Icon
-              v-if="index !== 0"
+              :style="`opacity:${index === 0 ? 0 : 1} ;`"
               name="close"
               :size="12"
               @click.stop="onChange(index, 'del')"