whycq
2022-10-26 72f5ecd3e654eb94468960dc6b93ca932800ed12
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
<template>
    <view class="canvas">
        <view class="main">
            <view class="titles">
                {{title}}
            </view>
            <view class="decs">
                <slot></slot>
            </view>
            <view class="operation">
                {{title}}
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        props: {
            title: {
                type: [String,Number],
                default: 'title'
            },
        },
    }
</script>
 
<style>
    .canvas {
        height: 100vh;
        width: 100%;
        background-color: rgba(0, 0, 0, .3);
        position: fixed;
        left: 0;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .main {
        width: 80%;
        height: 400rpx;
        background-color: #fff;
        border-radius: 20rpx;
    }
    .titles {
        width: 100%;
        height: 100rpx;
        /* background-color: black; */
        text-align: center;
        line-height: 120rpx;
        font-size: 34rpx;
        font-weight: bold;
        letter-spacing: 8rpx;
        color: #555555;
    }
    .decs {
        width: 100%;
        height: 200rpx;
        /* background-color: aqua; */
    }
    .operation {
        width: 100%;
        height: 100rpx;
        /* background-color: aquamarine; */
    }
</style>