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
<template>
<div class="d-subtitle d-flex">
<span :style="customizedSty? customizedSty: ''"></span>
<div class="title-text">
<slot></slot>
</div>
</div>
</template>
<script lang="ts">
import { Vue, Component, Prop } from "vue-property-decorator";
/**
* @Description 子标题
* @Author ZPFly
* @Date 2021/11/3 10:19
*/
@Component({
name: "SubTitle",
})
export default class SubTitle extends Vue {
@Prop()customizedSty: Object | undefined;
}
</script>
<style scoped lang="scss">
.d-subtitle {
height: 48px;
span {
width: 6px;
height: 18px;
border-radius: 3px;
margin: auto 10px auto 0;
background-color: rgba(247, 148, 0, 0.4);
}
.title-text {
font-weight: bold;
font-size: 18px;
line-height: 20px;
margin: auto 0;
}
}
</style>