Skip to content

Commit 8005460

Browse files
committed
增加动画效果
1 parent ffdc38f commit 8005460

File tree

3 files changed

+5
-50
lines changed

3 files changed

+5
-50
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "container-vue-element",
33
"version": "1.0.3",
4-
"description": "vue element 饿了么 后台容器\"",
4+
"description": "element admin vue 饿了么 后台容器\"",
55
"main": "./src/index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"

src/components/Layout.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
}
4040
</script>
4141
<style lang="scss">
42+
@import './../assets/sass/mixin.scss';
4243
body{
4344
margin: 0;
4445
}
@@ -85,7 +86,7 @@
8586
>.el-menu{
8687
display: block !important;
8788
position: absolute;
88-
width: 150px;
89+
width: 180px;
8990
left: 50px;
9091
padding-top: 5px;
9192
padding-bottom: 5px;
@@ -111,6 +112,7 @@
111112
}
112113
.layout-sidebar-left{
113114
width: 230px;
115+
transition: transform .3s ease-in-out,width .3s ease-in-out;
114116
}
115117
.layout-right{
116118
-moz-box-flex:1.0;

src/components/Layout/Sidebar.vue

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@
33
<div class="layout-logo-lg">CoreCMF</div>
44
<div class="layout-logo-mini">Core</div>
55
<el-menu default-active="1-4-1" theme="dark" class="sidebar-menu">
6-
<div class="user-panel">
7-
<div class="pull-left image">
8-
<img src="https://adminlte.io/themes/AdminLTE/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
9-
</div>
10-
<div class="pull-left info">
11-
<p>Alexander Pierce</p>
12-
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
13-
</div>
14-
</div>
156
<el-submenu index="1">
167
<template slot="title"><i class="el-icon-message"></i><span>Dashboard</span></template>
178
<el-menu-item index="1-1">选项1</el-menu-item>
@@ -88,6 +79,7 @@
8879
top: 50px;
8980
bottom:0;
9081
overflow-x: hidden;
82+
transition: transform .3s ease-in-out,width .3s ease-in-out;
9183
@include scrollBar;
9284
}
9385
/** 对饿了么菜单框架配色进行调整bengin **/
@@ -121,43 +113,4 @@
121113
color:#fff;
122114
}
123115
/** 对饿了么菜单框架配色进行调整end **/
124-
.user-panel{
125-
position:relative;
126-
height: 45px;
127-
padding: 10px;
128-
position:relative;
129-
>.pull-left{
130-
float:left;
131-
}
132-
>.image{
133-
>img{
134-
width:100%;
135-
max-width: 45px;
136-
height: auto;
137-
}
138-
>.img-circle{
139-
border-radius: 50%;
140-
}
141-
}
142-
>.info{
143-
>a{
144-
color: #fff;
145-
text-decoration: none;
146-
padding-right: 5px;
147-
margin-top: 3px;
148-
font-size: 11px;
149-
}
150-
>p{
151-
font-weight: 600;
152-
margin-bottom: 9px;
153-
}
154-
padding:5px 5px 5px 15px;
155-
line-height: 1;
156-
position: absolute;
157-
left: 55px;
158-
}
159-
}
160-
.text-success{
161-
color: #3c763d;
162-
}
163116
</style>

0 commit comments

Comments
 (0)