1
0

2 Commits 9fb2b1db32 ... 2b1e2cba8e

Autor SHA1 Nachricht Datum
  hxl 2b1e2cba8e ✨ feat(headTop): 添加切换图标 vor 8 Monaten
  hxl 10513b858a ✨ feat(header-mobile): 切换isShowMenu切换图标 vor 8 Monaten
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 5 5
      src/components/headTop.vue

+ 5 - 5
src/components/headTop.vue

@@ -22,12 +22,12 @@
       </div>
 
       <div class="header-mobile-tool">
-        <i class="el-icon-edit" @click.stop="toggleMenu()"></i>
+        <i :class="isShowMenu ? 'el-icon-close' : 'el-icon-edit'" @click.stop="toggleMenu()"></i>
       </div>
 
       <router-link class="header-tool" to="/ContactUs">Sign up</router-link>
     </div>
-    <div class="header-menu-wrap" v-show="isShowMenu">
+    <div class="header-menu-wrap" v-if="isShowMenu">
       <div class="header-link" @click="toggleMenu(link.path)" v-for="link in links" :to="link.path"
         active-class="header-link-active">{{
         link.name }}</div>
@@ -264,14 +264,14 @@ export default {
       .header-mobile-tool {
         display: block;
         font-size: 30px;
-        cursor: pointer;
         flex: 1;
         order: 2;
         text-align: right;
         margin-right: 20px;
+        i {
+          cursor: pointer;
+        }
       }
-
-
     }
 
   }