Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
兵
兵役_吉林工业
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
麦嘉得
兵役_吉林工业
提交
4bbdf5ee
提交
4bbdf5ee
编写于
3月 12, 2019
作者:
Pan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix[Sidebar]: fixed collapse animation problem
上级
1a6ae849
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
18 行增加
和
7 行删除
+18
-7
sidebar.scss
src/styles/sidebar.scss
+15
-5
variables.scss
src/styles/variables.scss
+2
-1
index.vue
src/views/layout/components/Sidebar/index.vue
+1
-1
未找到文件。
src/styles/sidebar.scss
浏览文件 @
4bbdf5ee
...
...
@@ -83,19 +83,26 @@
.hideSidebar
{
.sidebar-container
{
width
:
36
px
!
important
;
width
:
54
px
!
important
;
}
.main-container
{
margin-left
:
36px
;
margin-left
:
54px
;
}
.svg-icon
{
margin-right
:
0px
;
}
.submenu-title-noDropdown
{
padding
-left
:
10px
!
important
;
padding
:
0
!
important
;
position
:
relative
;
.el-tooltip
{
padding
:
0
10px
!
important
;
padding
:
0
!
important
;
.svg-icon
{
margin-left
:
20px
;
}
}
}
...
...
@@ -103,7 +110,10 @@
overflow
:
hidden
;
&
>
.el-submenu__title
{
padding-left
:
10px
!
important
;
padding
:
0
!
important
;
.svg-icon
{
margin-left
:
20px
;
}
.el-submenu__icon-arrow
{
display
:
none
;
...
...
src/styles/variables.scss
浏览文件 @
4bbdf5ee
...
...
@@ -9,9 +9,10 @@ $menuHover:#263445;
$subMenuBg
:
#1f2d3d
;
$subMenuHover
:
#001528
;
$sideBarWidth
:
18
0px
;
$sideBarWidth
:
21
0px
;
// the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
:export
{
menuText
:
$menuText
;
menuActiveText
:
$menuActiveText
;
...
...
src/views/layout/components/Sidebar/index.vue
浏览文件 @
4bbdf5ee
<
template
>
<el-scrollbar
wrap-class=
"scrollbar-wrapper"
>
<el-menu
:show-timeout=
"200"
:default-active=
"$route.path"
:collapse=
"isCollapse"
:background-color=
"variables.menuBg"
:text-color=
"variables.menuText"
:active-text-color=
"variables.menuActiveText"
:collapse-transition=
"false"
mode=
"vertical"
>
<sidebar-item
v-for=
"route in routes"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录