didiyu
2019-08-09 71dd80c584a59d608e3aca6f06ade23ae12d414b
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
<template>
  <div id="app">
    <div class="layout">
        <Layout>
            <Header class="page-header">
                <div class="app-logo">板卡自动测试系统</div>
                <div class="app-tools">
                  <ul>
                    <li><a class="active">管理员</a></li>
                    <li><a>退出系统</a></li>
                  </ul>
                </div>
            </Header>
            <main-menu></main-menu>
            <Content class="page-content">
              <router-view></router-view>
            </Content>
        </Layout>
    </div>
  </div>
</template>
 
<script>
import MainMenu from './components/MainMenu';
export default {
  components:{
    MainMenu
  },
  name: 'app'
}
</script>
<style scoped>
  .ivu-layout-header.page-header {
    position: relative;
    height: 60px;
    background: #EDEDED;
    box-shadow: 0 2px 6px rgba(0,0,0,.2)
  }
  .page-header .app-logo {
    position: absolute;
    color: #2F89C9;
    font-size: 18px;
  }
  .page-header .app-tools {
    float: right;
  }
  .app-tools ul li{
    float:left;
    list-style: none;
  }
  .app-tools ul li a {
    display: block;
    height: 60px;
    padding: 0 12px;
    font-size: 18px;
    line-height: 60px;
  }
  .app-tools ul li a.active {
    background-color: #0070C0;
    color: #FFFFFF;
  }
  .app-tools ul li a:active {
    background-color: #0070C0;
    color: #FFFFFF;
  }
  .ivu-layout-content.page-content {
    margin-top: 2px;
    height: calc(100vh - 171px);
    overflow-y: auto;
    background: -webkit-linear-gradient(#E7EDF7, #ABC0E4); /* Safari 5.1 - 6.0 */
    background: -o-linear-gradient(#E7EDF7, #ABC0E4); /* Opera 11.1 - 12.0 */
    background: -moz-linear-gradient(#E7EDF7, #ABC0E4); /* Firefox 3.6 - 15 */
    background: linear-gradient(#E7EDF7, #ABC0E4); /* 标准的语法 */
  }
  
</style>