zhaoxiaoqiang
2021-07-28 731b56e3ee7068ed721c2c4ed7413bb2f8699042
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
<template>
    <div class="f-block">
        <p class="block-title vux-1px-b">{{ title }}</p>
        <div class="block-content">
            <slot></slot>
        </div>
    </div>
</template>
 
<script>
    /**
     * Created by TANGiMING
     * 2018-8-7
     * 一个功能块,可以设置标题,内容自定义
     * @prop        title       定义功能块的标题
     * @slot        定义功能块内容
     */
    export default {
        name: 'f-block',
        props: {
            title: {
                type: String,
                required: true,
                default: '功能块'
            }
        }
    };
</script>
<style lang="less" scoped>
    .f-block {
        margin-top: 10px;
        background-color: #fff;
        .block-title {
            height: 44px;
            line-height: 44px;
            font-size: 15px;
            padding-left: 20px;
            color: #3a3a3a;
        }
    }
</style>