代码提交
This commit is contained in:
@ -10,7 +10,7 @@ import { nextTick, ref, toRefs } from "vue";
|
||||
import UniPopup from "@/components/uniComponents/UPopup/uni-popup/uni-popup.vue";
|
||||
|
||||
/** some javascript code in here */
|
||||
const emit = defineEmits(['open', 'close'])
|
||||
const emit = defineEmits(['open', 'close', 'maskClick'])
|
||||
/**
|
||||
* @property {String} title 标题
|
||||
* @property {String} mode 模式
|
||||
@ -73,6 +73,10 @@ const handlePopupChange = (e) => {
|
||||
if (!e.show) emit('close')
|
||||
}
|
||||
|
||||
const handleMaskClick = (e) => {
|
||||
emit('maskClick')
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
show,
|
||||
close
|
||||
@ -86,6 +90,7 @@ defineExpose({
|
||||
:is-mask-click="isMaskClick"
|
||||
background-color="#fff"
|
||||
@change="handlePopupChange"
|
||||
@maskClick="handleMaskClick"
|
||||
class="y-popup"
|
||||
>
|
||||
<view class="popup_inner">
|
||||
|
Reference in New Issue
Block a user