ReceptionTitle.vue
539 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
<template>
<div class="title flex">
<div :class="['sprite-icon',`icon-${icon}`]"></div>
{{title}}
</div>
</template>
<script type='text/ecmascript-6'>
export default {
props: {
title: String,
icon: String
},
name: '',
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.title {
padding: toRpx(24) 0;
color: #333333;
font-size: toRpx(32);
font-weight: 500;
line-height: toRpx(40);
.sprite-icon {
margin-right: toRpx(12);
}
}
</style>