导航栏
This commit is contained in:
parent
b012a2b893
commit
c4d055d59a
@ -18,9 +18,11 @@ import {
|
|||||||
Menu,
|
Menu,
|
||||||
MenuItem,
|
MenuItem,
|
||||||
Breadcrumb,
|
Breadcrumb,
|
||||||
BreadcrumbItem
|
BreadcrumbItem,
|
||||||
|
Avatar
|
||||||
} from 'element-ui'
|
} from 'element-ui'
|
||||||
|
|
||||||
|
Vue.use(Avatar)
|
||||||
Vue.use(Button)
|
Vue.use(Button)
|
||||||
Vue.use(Form)
|
Vue.use(Form)
|
||||||
Vue.use(Input)
|
Vue.use(Input)
|
||||||
|
|||||||
@ -6,7 +6,10 @@
|
|||||||
<img src="../assets/logo.png" alt="" />
|
<img src="../assets/logo.png" alt="" />
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
<div class="navUser">用户</div>
|
<div class="navUser">
|
||||||
|
<div class="block"><el-avatar shape="square" :size="50" :src="squareUrl"></el-avatar></div>
|
||||||
|
<span>{{ userName }}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<img src="../assets/11.jpg" alt="" />
|
<img src="../assets/11.jpg" alt="" />
|
||||||
@ -36,6 +39,8 @@ export default {
|
|||||||
name: 'HomeView',
|
name: 'HomeView',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
userName: 'ddmt',
|
||||||
|
// squareUrl: "https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png",
|
||||||
parItem: [
|
parItem: [
|
||||||
{
|
{
|
||||||
title: '环境治理',
|
title: '环境治理',
|
||||||
@ -76,20 +81,29 @@ export default {
|
|||||||
<style lang="less">
|
<style lang="less">
|
||||||
.navigationBar {
|
.navigationBar {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100px;
|
height: 80px;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
border-top-left-radius: 5px;
|
border-top-left-radius: 5px;
|
||||||
border-top-right-radius: 5px;
|
border-top-right-radius: 5px;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 600px;
|
margin-left: 5px;
|
||||||
height: 100px;
|
width: auto;
|
||||||
|
height: 80px;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navUser {
|
.navUser {
|
||||||
float: right;
|
float: right;
|
||||||
margin-right: 100px;
|
margin-right: 100px;
|
||||||
|
.block {
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span{
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,7 +152,7 @@ export default {
|
|||||||
transition: all 0.5s;
|
transition: all 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
li:nth-child(5){
|
li:nth-child(5) {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
@ -173,7 +187,7 @@ export default {
|
|||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
button{
|
button {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
background-color: rgba(255, 255, 255, 0.4);
|
background-color: rgba(255, 255, 255, 0.4);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user