title-floor.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
<template>
<div class="floor-header">
{{title.name}}
<a class="more" href="{{title.more_url}}">
<span v-if="title.more_name === '···'" class="icon icon-more"></span>
<span v-else>{{{title.more_name}}}</span>
</a>
</div>
</template>
<script>
module.exports = {
props: ['title']
};
</script>
<style>
.floor-header {
position: relative;
width: 100%;
height: 100px;
font-size: 32px;
line-height: 100px;
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: 100px;
padding: 0 30px 0 0;
overflow: hidden;
}
}
</style>