liuying
2024-12-11 3b8b9cba9ebe15ff4ae1a7d8cb483d1f0ffcfa85
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
<template>
    <view class="cu-modal" :class="modalshow?'show':''">
        <view class="cu-dialog" >
            <view class="cu-bar bg-white justify-end">
                <view class="content">{{placeholder}}</view>
                <view class="action" @tap="$emit('hideModal')">
                    <text class="iconfont icon-guanbi text-red"></text>
                </view>
            </view>
            <view class="padding-xl">
                <slot name="modal"></slot>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        name:"CuModal",
        data() {
            return {
                show:false
            };
        },
        props:{
            modalshow:{
                type:Boolean,
                default:false
            },
            placeholder:{
                type:String,
                default:''
            }
        },
        methods:{
            hideModal(){
                
            }
        }
    }
</script>
 
<style lang="scss">
 
</style>