index.vue
900 Bytes
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
<template>
<a-layout-header class="layout-header">
<LogoOfHeader />
<div style="float:right;">
<Links />
<slot name="action-menu"></slot>
<LangSelect />
</div>
</a-layout-header>
</template>
<script>
import LogoOfHeader from './logo.js'
import LangSelect from './LangSelect'
import Links from './links'
export default {
name: 'Header',
components: {
LogoOfHeader,
LangSelect,
Links
}
}
</script>
<style lang="scss" scoped>
.layout-header {
padding: 0 10px;
.logo {
width: 120px;
height: 31px;
margin: 16px 28px 16px 0;
float: left;
line-height: 31px;
text-align: center;
color: white;
font-size: 16px;
}
.lang-select-activator,
.user-avatar-activator {
// float: right;
background: transparent;
margin: 0 28px 16px 0;
cursor: pointer;
.anticon {
color: white;
}
}
}
</style>