ann0707
2018-08-16 c9bc8ec61cff4076132f6396d99d383a2cdf5a03
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
<template>
    <div class="f-title-box">
        <div class="f-block-title">
            <span></span>
            {{ title }}
            <slot name="more"></slot>
        </div>
        <div class="title-line"></div>
    </div>
 
</template>
 
<script>
    /**
     * Created by c.y on 2018/3/16.
     * 组件的命名 项目名(F---filean) + 组件的描述(区别与框架的组件)
     * 每一个板块的title
     */
    export default {
        name: 'f-block-title',
        props: {
            title: {
                type: String,
                required: true
            }
        }
    }
</script>
 
<style lang="less">
    @import "../../style/mixin";
    .f-title-box {
        .title-line {
            position: relative;
            &:after {
                .setBottomLine(@color-divider-regular);
            }
        }
        .f-block-title {
            position: relative;
            padding: 15px 0 11px 12px;
            font-size: @font-size-primary;
            line-height: 18px;
            color: @color-text-primary;
            background-color: @color-white;
            span {
                display: inline-block;
                width: 2px;
                height: 18px;
                margin-right: 10px;
                vertical-align: middle;
                background-color: @color-primary;
            }
            .more {
                position: absolute;
                right: 0;
                top: 0;
                height: 44px;
                padding: 14px 12px 0;
                font-size: 14px;
                color: @color-text-secondary;
                box-sizing: border-box;
                .icon-arrow {
                    font-size: 14px;
                    font-weight: bold;
                }
            }
        }
    }
 
</style>