pang.jiabao
4 天以前 c85e0e256d32dd2b040443380feb808012994512
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
79
80
81
82
83
<template>
    <view class="box">
        <view class="box-border box-border1"></view>
        <view class="box-border box-border2"></view>
        <view class="box-border box-border3"></view>
        <view class="box-border box-border4"></view>
        <view class="box-main">
            <slot/>
        </view>
    </view>
</template>
 
<script>
    export default {
        props: {
            title: {
                type: [String,Number],
                default: '标题'
            },
        },
        computed: {
            titleText() {
                return this.title 
            },
        },
        data() {
            return {
                
            };
        }
        
    }
</script>
 
<style>
    .box {
        width: calc(100% - 0.2vh);
        height: calc(100% - 0.2vh);
        position: relative;
        border: 0.1vh solid rgba(20, 80, 136, 1);
        display: flex;
        justify-content: center;
    }
    .box-main {
        width: 96%;
        height: 100%;
        /* background-color: #31c4c4; */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .box-border {
        position: absolute;
        /* background-color: #4CD964; */
        width: 1.5vh;
        height: 1.5vh;
    }
    .box-border1 {
        top: 0;
        left: 0;
        border-left: 0.1vh solid #31c4c4;
        border-top: 0.1vh solid #31c4c4;
    }
    .box-border2 {
        top: 0;
        right: 0;
        border-right: 0.1vh solid #31c4c4;
        border-top: 0.1vh solid #31c4c4;
    }
    .box-border3 {
        bottom: 0;
        left: 0;
        border-bottom: 0.1vh solid #31c4c4;
        border-left: 0.1vh solid #31c4c4;
    }
    .box-border4 {
        bottom: 0;
        right: 0;
        border-right: 0.1vh solid #31c4c4;
        border-bottom: 0.1vh solid #31c4c4;
    }
</style>