guoshilong
2023-10-27 2311b03aee9db1bebacdd2ced13c071efda6a011
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<template>
    <div class="box-title-container flex j-c-s-b">
        <div class="title-name">
            {{ title }}
        </div>
 
        <div class="region-more">
            <div class="region">
                <slot name="region"></slot>
            </div>
            <div class="more">
                <slot name="more"></slot>
            </div>
        </div>
    </div>
</template>
 
<script>
    export default {
        name: 'BoxTitle',
        props: {
            title: {
                type: String,
                default: ''
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    .box-title-container {
        height: 36px;
        line-height: 36px;
 
        .title-name {
            padding-left: 10px;
            position: relative;
            font-size: 20px;
            font-family: Microsoft YaHei-Bold, Microsoft YaHei;
            font-weight: bold;
            color: #333333;
 
            &::after {
                content: '';
                position: absolute;
                top: 50%;
                left: 0;
                width: 4px;
                height: 18px;
                background: #1890FF;
                border-radius: 2px 2px 2px 2px;
                opacity: 1;
                transform: translate(0, -50%);
            }
        }
 
        .region {
            font-size: 20px;
            font-family: Alibaba PuHuiTi-Bold, Alibaba PuHuiTi;
            font-weight: bold;
            color: #333333;
        }
 
        .more {
            font-size: 15px;
            font-family: Microsoft YaHei-Regular, Microsoft YaHei;
            font-weight: 400;
            color: #1890FF;
            cursor: pointer;
        }
    }
</style>