53 lines
1.8 KiB
Vue
53 lines
1.8 KiB
Vue
<script setup lang="ts">
|
||
import { IconAlertTriangle } from "@tabler/icons-vue";
|
||
import {
|
||
AlertDialog,
|
||
AlertDialogBackdrop,
|
||
AlertDialogBody,
|
||
AlertDialogClose,
|
||
AlertDialogCloseTrigger,
|
||
AlertDialogContainer,
|
||
AlertDialogDialog,
|
||
AlertDialogFooter,
|
||
AlertDialogHeader,
|
||
AlertDialogHeading,
|
||
AlertDialogIcon,
|
||
Button,
|
||
} from "@heroui-vue/components";
|
||
</script>
|
||
|
||
<template>
|
||
<AlertDialog>
|
||
<Button variant="danger">删除账户</Button>
|
||
<AlertDialogBackdrop
|
||
class="bg-linear-to-t from-red-950/90 via-red-950/50 to-transparent dark:from-red-950/95 dark:via-red-950/60"
|
||
variant="blur"
|
||
>
|
||
<AlertDialogContainer>
|
||
<AlertDialogDialog class="sm:max-w-[420px]">
|
||
<AlertDialogCloseTrigger />
|
||
<AlertDialogHeader class="items-center text-center">
|
||
<AlertDialogIcon status="danger">
|
||
<IconAlertTriangle class="size-5" aria-hidden="true" />
|
||
</AlertDialogIcon>
|
||
<AlertDialogHeading>要永久删除账户吗?</AlertDialogHeading>
|
||
</AlertDialogHeader>
|
||
<AlertDialogBody>
|
||
<p>
|
||
此操作无法撤销。你的数据、设置与内容将从服务器永久清除。醒目的红色背景用于强调该决定的严重性与不可逆性。
|
||
</p>
|
||
</AlertDialogBody>
|
||
<AlertDialogFooter class="flex-col-reverse">
|
||
<AlertDialogClose as-child>
|
||
<Button class="w-full">保留账户</Button>
|
||
</AlertDialogClose>
|
||
<AlertDialogClose as-child>
|
||
<Button class="w-full" variant="danger">永久删除</Button>
|
||
</AlertDialogClose>
|
||
</AlertDialogFooter>
|
||
</AlertDialogDialog>
|
||
</AlertDialogContainer>
|
||
</AlertDialogBackdrop>
|
||
</AlertDialog>
|
||
</template>
|