article-bar.vue
698 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
<template>
<div class="bar-wrapper">
<div class="title">资讯详情</div>
<div class="close" @click="close">
<i class="iconfont icon-close icon"></i>
</div>
</div>
</template>
<script>
export default {
name: 'ArticleBar',
methods: {
close() {
this.$emit('on-close');
}
},
};
</script>
<style lang="scss" scoped>
.bar-wrapper {
width: 100%;
height: 88px;
position: relative;
background-color: white;
border-bottom: 1px solid #e0e0e0;
}
.title {
font-size: 32px;
color: #444;
line-height: 88px;
text-align: center;
}
.close {
color: #444;
position: absolute;
top: 20px;
right: 40px;
}
.icon {
font-size: 50px;
}
</style>