添加外部点击事件用于 t-confirm

This commit is contained in:
BTMuli
2023-05-25 23:17:32 +08:00
parent f1db614dee
commit 6c25e56010

View File

@@ -1,6 +1,6 @@
<template> <template>
<transition enter-from-class="tolo-enter-from" name="tolo"> <transition enter-from-class="tolo-enter-from" name="tolo">
<div v-show="showTolo" class="tolo-box"> <div v-show="showTolo" class="tolo-box" @click="toClick">
<transition enter-from-class="toli-enter-from" name="toli"> <transition enter-from-class="toli-enter-from" name="toli">
<slot v-if="showToli" /> <slot v-if="showToli" />
</transition> </transition>
@@ -13,6 +13,7 @@ import { ref, watch } from "vue";
interface TolProps { interface TolProps {
modelValue: boolean; modelValue: boolean;
toClick?: () => void;
} }
const showTolo = ref(false); const showTolo = ref(false);