<script setup>
import {ref} from "vue";

const show = ref(false);
</script>

<template>
    <view @click="show=true">
        <slot></slot>
    </view>

    <tui-alert
        fadeIn
        v-bind="$attrs"
        @cancel="show=false"
        maskClosable
        @click="show=false"
        :show="show">
        <slot name="context"></slot>
    </tui-alert>
</template>

<style scoped>

</style>
