Title.vue
636 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
<template>
<div class='title'>
<i></i>
<slot></slot>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'Title',
data () {
return {
}
}
}
</script>
<style scoped lang='scss'>
.title {
width: 100%;
box-sizing: border-box;
font-size: 34px;
color: #ffffff;
letter-spacing: 4px;
height: 82px;
line-height: 82px;
position: relative;
text-indent: 82px;
i {
position: absolute;
left: 38px;
top: 50%;
transform: translateY(-50%);
width: 20px;
height: 32px;
background: url("~@a/arrow.png") no-repeat;
background-size: cover;
}
}
</style>