shuishen
2023-12-20 ab97e22763d1ece9f2c8061d81034657eb56ce4e
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!--
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2023-04-11 18:14:04
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-12-20 18:02:20
 * @FilePath: \jczz_web\src\views\userHouse\components\boxTitle.vue
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
-->
<template>
    <div class="box-title-container flex j-c-s-b"
        :style="{ margin: margin, height: boxHeight + 'px', lineHeight: boxHeight + 'px' }">
        <div class="title-name">
            <span>{{ title }}</span>
            <slot name="icon"></slot>
        </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: ''
        },
        margin: {
            type: String,
            default: "0"
        },
        boxHeight: {
            type: Number,
            default: 36
        }
    }
}
</script>
 
<style lang="scss" scoped>
.flex {
    display: flex;
}
 
.j-c-s-b {
    justify-content: space-between;
}
 
.box-title-container {
 
    .title-name {
        display: flex;
        align-items: center;
        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 {
        padding-right: 10px;
        font-size: 15px;
        font-family: Microsoft YaHei-Regular, Microsoft YaHei;
        font-weight: 400;
        color: #1890FF;
        cursor: pointer;
    }
}
</style>