feat:插件支持渲染弹窗关闭按钮

This commit is contained in:
jxxghp
2024-04-17 21:20:31 +08:00
parent d097c1c17c
commit 6350c7e9e6
3 changed files with 6 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
<script lang="ts" setup>
// 定义触发的自定义事件
const emit = defineEmits(['click'])
const emit = defineEmits(['click', 'update:modelValue'])
// 按钮点击
function onClick() {
emit('update:modelValue', false)
emit('click')
}
</script>