DetailBlock.vue
674 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
<template>
<div class="detail-block">
<div class="title flex">{{title}}</div>
<div class="block-content">
<slot></slot>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
props: {
title: {
type: String,
default: ''
}
},
name: '',
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.flex {
display: flex;
align-items: center;
}
.detail-block {
background: #ffffff;
.title {
height: 50px;
border-bottom: 1px solid #e5e5e5;
text-indent: 20px;
font-weight: 500;
color: #333333;
font-size: 16px;
}
}
</style>