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>
|
<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);
|
||||||
|
|||||||
Reference in New Issue
Block a user