WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
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
<style scoped lang="scss">
    .u-title {
        .u-title-prefix {
            width: 4px;
            height: 18px;
            border-radius: 2px;
            background: $u-primary;
            margin-right: 12px;
            margin-right :10px;
        }
    }
</style>
<template>
    <view class="u-title u-flex-row u-flex-y-center">
        <slot name="prefix">
            <view class="u-title-prefix">
            </view>
        </slot>
        <slot></slot>
    </view>
</template>
<script>
export default {
    name: 'u-title',
    props: {
    },
    data() {
        return {
        }
    },
    created: function () {
    },
    methods: {
    }
}
</script>