App.vue
1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!--
* @Author: jiangbotao
* @Date: 2019-12-03 22:31:08
* @LastEditors: jiangbotao
* @LastEditTime: 2019-12-16 00:39:49
* @FilePath: \superglobevue\src\App.vue
-->
<template>
<a-layout id="components-layout-demo-top-side-2">
<a-layout-header class="header" style="background-color:#3578b1; padding: 0px 25px;">
<span class="fa fa-globe fa-lg"></span> 温州项目VUE 3DMap示例(v10.0)
<a-menu
theme="dark"
mode="horizontal"
:defaultSelectedKeys="['2']"
:style="{ lineHeight: '64px' }"
>
</a-menu>
</a-layout-header>
<a-layout>
<a-layout-sider collapsible v-model="collapsed" style="background-color:white;">
<MyMenu></MyMenu>
</a-layout-sider>
<a-layout style="padding: 10px 10px 10px 10px">
<a-layout-content :style="{ background: '#fff', padding: '12px', margin: 0, minHeight: '500px' }">
<div id="app" style="position: relative; width:100%;">
<router-view/>
</div>
</a-layout-content>
</a-layout>
</a-layout>
</a-layout>
</template>
<script>
import MyMenu from './components/menu/MyMenu';
export default {
name: 'App',
data() {
return {
collapsed: true,
};
},
components:{
MyMenu
}
}
</script>
<style scoped>
.ant-layout-header {
height: 64px;
padding: 0 25px;
line-height: 64px;
background: #0b5296;
color: white;
font-size: 26px;
border-bottom: 2px solid #bb5905;
}
.ant-layout {
height: 100%;
}
#components-layout-demo-top-side-2 .logo {
width: 120px;
height: 31px;
background: rgba(255, 255, 255, 0.2);
margin: 16px 28px 16px 0;
float: left;
}
.ant-layout-sider {
position: relative;
min-width: 0;
background:white;
-webkit-transition: all 0.2s;
transition: all 0.2s;
}
.ant-layout-sider-trigger {
color: #b73c3c;
background: #ffffff;
}
#app{
height: 100%;
}
</style>