<template>
    <u-modal
    :show="show"
    :title="title"
    :confirmText="confirmText"
    :cancelText="cancelText"
    :showCancelButton="true"
    :confirmColor="confirmColor"
    :cancelColor="cancelColor"
    :closeOnClickOverlay="true"
    @confirm="$emit('confirm')"
    @cancel="$emit('cancel')"
    @close="$emit('close')"
    >
    	<slot></slot>
    </u-modal>
</template>

<script>
export default {
	props: {
		show: {
			type: Boolean,
			default: false
		},
		title: {
			type: String,
			default: ''
		},
		confirmText: {
			type: String,
			default: '确认'
		},
		cancelText: {
			type: String,
			default: '取消'
		},
		confirmColor: {
			type: String,
			default: '#2979ff'
		},
		cancelColor: {
			type: String,
			default: '#606266'
		}
	},
	created() {
		
	},
};
</script>

<style scoped>
	
</style>
