代码提交

This commit is contained in:
黄少君
2023-11-15 19:59:37 +08:00
parent dcab74274f
commit 35b43ffd97
43 changed files with 1265 additions and 387 deletions

View File

@ -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">