You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shop-pc/components/UiDialog.vue

27 lines
414 B

3 years ago
<!--
* @Author: ch
* @Date: 2022-05-09 20:00:57
* @LastEditors: ch
* @LastEditTime: 2022-05-09 20:04:59
* @Description: file content
-->
<template>
<el-dialog :visible="visible" @close="close">
<slot></slot>
</el-dialog>
</template>
<script>
export default {
props: {
visible : {
type : Boolean,
default : false
}
},
methods:{
close(...args){
this.$emit('close', args)
}
}
}
</script>