<template>
	<u-overlay :show="show" @click="$emit('close')">
		<view class="modal-main" @tap.stop="">
			<view class="modal-content">
				<slot></slot>
			</view>

			<view v-if="showClose" @click="$emit('close')" class="close">
				<image src="@/static/close.png"></image>
			</view>
		</view>
	</u-overlay>
</template>

<script>
	export default {
		props: {
			show: {
				type: Boolean,
				default: false
			},
			showClose: {
				type: Boolean,
				default: false
			}
		},
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style scoped>
	.modal-main {
		width: 90%;
		margin: auto;
	}

	.modal-content {
		/* min-height: 500rpx;
		padding: 32rpx 32rpx 48rpx;
		background-color: #FFF;
		border-radius: 16rpx; */
	}

	.close {
		margin-top: 48rpx;
		text-align: center;
	}

	.close>image {
		width: 64rpx;
		height: 64rpx;
	}
</style>