popup-normal.vue
819 Bytes
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
<template>
<u-popup :show="visible" mode="center" @close="onClose" closeable :safe-area-inset-bottom="false" :customStyle="{ background: 'transparent' }">
<view class="popup-normal">
<view class="popup-normal__content">
<slot></slot>
</view>
</view>
</u-popup>
</template>
<script>
export default {
props: {
visible: {
type: Boolean,
default: false,
},
},
methods: {
onClose() {
this.$emit('update:visible', false);
},
}
}
</script>
<style lang="scss">
.popup-normal {
box-sizing: border-box;
width: 660rpx;
padding: 65rpx 74rpx 60rpx;
background-color: #FFFFFF;
color: #000000;
border-radius: 30rpx;
&__content {
background-color: #FFFFFF;
font-weight: normal;
max-height: 65vh;
overflow-y: auto;
}
}
</style>