index.vue
1.01 KB
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
47
48
49
50
51
52
53
54
55
56
<template>
<div class="TitleLab" :style="styles">
<span class="title">{{ title }}</span>
<div>
<slot></slot>
</div>
</div>
</template>
<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator'
@Component({
name: 'TitleLab'
})
export default class extends Vue {
@Prop({ default: '集团管理' }) private title!: string
@Prop({ default: '' }) private styles!: any
}
</script>
<style lang="scss" scoped>
.TitleLab {
display: flex;
justify-content: space-between;
height: 50px;
line-height: 50px;
.title {
position: relative;
padding-left: 20px;
&::after {
content: '';
position: absolute;
display: inline-block;
width: 4px;
height: 4px;
background: #f00;
left: 0;
top: calc(50% - 5px);
}
&::before {
content: '';
position: absolute;
display: inline-block;
width: 4px;
height: 4px;
background: #f00;
left: 0;
top: calc(50% + 1px);
}
}
}
</style>