mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
✨ 添加外部点击事件用于 t-confirm
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<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">
|
||||
<slot v-if="showToli" />
|
||||
</transition>
|
||||
@@ -13,6 +13,7 @@ import { ref, watch } from "vue";
|
||||
|
||||
interface TolProps {
|
||||
modelValue: boolean;
|
||||
toClick?: () => void;
|
||||
}
|
||||
|
||||
const showTolo = ref(false);
|
||||
|
||||
Reference in New Issue
Block a user