Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_page
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_page
Commits
fd1d6faa
提交
fd1d6faa
authored
8月 05, 2022
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改hover效果
上级
48884168
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
49 行增加
和
33 行删除
+49
-33
App.vue
src/App.vue
+0
-9
index.vue
src/components/NavBar/index.vue
+49
-24
没有找到文件。
src/App.vue
浏览文件 @
fd1d6faa
...
@@ -21,15 +21,6 @@ export default {
...
@@ -21,15 +21,6 @@ export default {
headerFixed
:
false
,
headerFixed
:
false
,
};
};
},
},
mounted
()
{
this
.
$nextTick
(()
=>
{
let
wow
=
this
.
$wow
;
wow
.
init
();
});
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
...
...
src/components/NavBar/index.vue
浏览文件 @
fd1d6faa
...
@@ -11,11 +11,15 @@
...
@@ -11,11 +11,15 @@
<div
class=
"tabs wow animate__animated animate__fadeInUp"
>
<div
class=
"tabs wow animate__animated animate__fadeInUp"
>
<div
<div
class=
"tab-item"
class=
"tab-item"
:class=
"
{
activeHome: currentTab.name == item.name
&&
isHome,
active: currentTab.name == item.name
&&
!isHome,
}"
v-for="(item, index) in pages"
v-for="(item, index) in pages"
:key="index"
:key="index"
@click="handleClickTab(item)"
@click="handleClickTab(item)"
>
>
<
div
:class=
"
{ active: currentTab.name == item.name }">
</div
>
<
!--
<div
></div>
--
>
<router-link
:to=
"item.path"
>
{{
item
.
name
}}
</router-link>
<router-link
:to=
"item.path"
>
{{
item
.
name
}}
</router-link>
</div>
</div>
</div>
</div>
...
@@ -268,35 +272,56 @@ export default {
...
@@ -268,35 +272,56 @@ export default {
// padding: 15px 50px;
// padding: 15px 50px;
height
:
100%
;
height
:
100%
;
text-align
:
center
;
text-align
:
center
;
a
{
a
{
font-size
:
18px
;
font-size
:
18px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
transition
:
all
0
.5s
ease
;
&
:
:
before
{
transition
:
all
0
.5s
cubic-bezier
(
0
.7
,
-0
.5
,
0
.2
,
2
);
content
:
""
;
display
:
inline-block
;
width
:
0
;
height
:
4px
;
background
:
#1d549d
;
position
:
absolute
;
bottom
:
24px
;
left
:
0
;
}
}
&
:hover
:before
{
&
:hover
{
background
:
#1d549d
;
a
{
width
:
100%
;
color
:
#182f68
;
}
}
.active
{
width
:
100%
;
height
:
4px
;
background
:
#1d549d
;
position
:
absolute
;
bottom
:
24px
;
left
:
0
;
}
}
.router-link-exact-active
{
color
:
#182f68
;
}
// .activeHome {
// a {
// color: #2069c4 !important;
// }
// }
// .active {
// a {
// color: #000 !important;
// }
// }
// &::before {
// transition: all 0.5s cubic-bezier(0.7, -0.5, 0.2, 2);
// content: "";
// display: inline-block;
// width: 0;
// height: 4px;
// background: #1d549d;
// position: absolute;
// bottom: 24px;
// left: 0;
// }
// &:hover:before {
// background: #1d549d;
// width: 38px;
// }
// .active {
// width: 38px;
// height: 4px;
// background: #1d549d;
// position: absolute;
// bottom: 24px;
// left: 0;
// }
}
}
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论