#
whycq
2022-09-23 c5e381984c6342fed7ab3380ec21459451751929
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
<template>
    <!-- <view style="display: flex;align-items: center;width: 100%;border-radius: 5rpx;">
        <view class="decorate"></view>
        <view class="title">{{titleText}}</view>
    </view> -->
    <view>
        <y-warpper>
            <view style="display: flex;align-items: center;width: 100%;">
                <view class="decorate"></view>
                <view class="title">{{titleText}}</view>
            </view>
        </y-warpper>
    </view>
</template>
 
<script>
    export default {
        name:"y-title",
        props: {
            title: {
                type: [String,Number],
                default: '标题'
            },
        },
        computed: {
            titleText() {
                return this.title 
            },
        },
        data() {
            return {
                
            };
        }
    }
</script>
 
<style>
    .decorate {
        width: 8rpx;
        height: 24rpx;
        margin: 2%;
        border-radius: 5rpx;
        background-color: #409EFF;
    }
    .title {
        width: 100%;
        height: 50rpx;
        line-height: 55rpx;
        font-size: 32rpx;
        font-weight: bold;
        font-family: Arial, Helvetica, sans-serif;
        text-indent: 1%;
        letter-spacing: 4rpx;
        color: #303133;
    }
</style>