|
@@ -12,18 +12,20 @@ const navList = [
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <header class="bg-white h-60px">
|
|
|
- <div class="container h-full mx-auto px-4">
|
|
|
- <nav class="flex h-full items-center justify-between py-5px">
|
|
|
- <div class="flex items-center">
|
|
|
- <img src="logo.png" alt="Logo" class="h-50px" />
|
|
|
- </div>
|
|
|
- <el-menu router default-active="/home" class="el-menu-demo" mode="horizontal" :ellipsis="false">
|
|
|
- <el-menu-item :index="item.path" v-for="item in navList" :key="item.path">
|
|
|
- {{ item.title }}
|
|
|
- </el-menu-item>
|
|
|
- </el-menu>
|
|
|
- </nav>
|
|
|
+ <header class="mb-57px">
|
|
|
+ <div class="bg-white fixed top-0 inset-x-0 z-100">
|
|
|
+ <div class="container h-full mx-auto px-4">
|
|
|
+ <nav class="flex h-full items-center justify-between">
|
|
|
+ <div class="flex items-center">
|
|
|
+ <img src="logo.png" alt="Logo" class="h-50px" />
|
|
|
+ </div>
|
|
|
+ <el-menu router default-active="/home" mode="horizontal" :ellipsis="false">
|
|
|
+ <el-menu-item :index="item.path" v-for="item in navList" :key="item.path">
|
|
|
+ {{ item.title }}
|
|
|
+ </el-menu-item>
|
|
|
+ </el-menu>
|
|
|
+ </nav>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</header>
|
|
|
</template>
|
|
@@ -32,10 +34,4 @@ const navList = [
|
|
|
.el-menu--horizontal {
|
|
|
border-bottom: none;
|
|
|
}
|
|
|
-.router-link {
|
|
|
- height: 50px;
|
|
|
-}
|
|
|
-.router-link-active {
|
|
|
- color: red;
|
|
|
-}
|
|
|
</style>
|