whyczyk
2021-07-31 04c2eb1db65b16f8d1b5c6a3b1eda6bb843f2bc3
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
<template>
    <div class="page-panel">
        <div :class="['title', {'border': border}]">
            <div class="title-txt">
                <slot name="title">{{title}}</slot>
            </div>
            <div class="tools">
                <slot name="btnGrp"></slot>
            </div>
        </div>
        <div class="content">
            <slot></slot>
        </div>
    </div>
</template>
 
<script>
    export default {
        props: {
            border: {
                type: Boolean,
                default: false,
            },
            title: {
                type: String,
                default: "",
            }
        }
    }
</script>
 
<style scoped>
    .page-panel {
        background: #222767;
        -webkit-border-radius: 6px;
        border-radius: 6px;
        font-size: 16px;
        display: -webkit-flex;
        display: flex;
        flex-direction: column;
    }
 
    .title {
        display: -webkit-flex;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }
 
    .title.border {
        border-bottom: 1px #6166ce solid;
    }
 
    .title-txt {
        flex: 1;
    }
 
    .tools {
        display: -webkit-flex;
        display: flex;
    }
 
    .content {
        flex: 1;
    }
 
    .page-panel.page-list-banner .content {
        display: -webkit-flex;
        display: flex;
        padding: 10px 0;
    }
 
    .page-panel.page-list-banner .banner-btn-grp {
        display: -webkit-flex;
        display: flex;
    }
</style>