title-floor.vue
1.03 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
<template>
<div class="floor-header">
{{title.name}}
<a class="more" :href="title.more_url | transformBlk">
<span v-if="title.more_name === '···' || '···'" class="icon icon-more"></span>
<span v-else>{{title.more_name}}</span>
</a>
</div>
</template>
<script>
export default {
props: ['title']
};
</script>
<style>
.floor-header {
position: relative;
width: 100%;
height: 80px;
font-size: 32px;
line-height: 80px;
text-align: center;
font-weight: bold;
border-top: 1px solid #eee;
margin-top: 20px;
background: #fff;
.more {
position: absolute;
top: 0;
right: 0;
max-width: 200px;
height: 80px;
padding: 0 30px 0 0;
line-height: 80px;
letter-spacing: 5px;
overflow: hidden;
.icon {
margin-left: 5px;
}
}
}
</style>