56 lines
1.8 KiB
Vue
56 lines
1.8 KiB
Vue
<script setup lang="ts">
|
||
import {
|
||
AlertDialog,
|
||
AlertDialogBackdrop,
|
||
AlertDialogBody,
|
||
AlertDialogClose,
|
||
AlertDialogContainer,
|
||
AlertDialogDialog,
|
||
AlertDialogFooter,
|
||
AlertDialogHeader,
|
||
AlertDialogHeading,
|
||
AlertDialogIcon,
|
||
Button,
|
||
} from "@heroui-vue/components";
|
||
</script>
|
||
|
||
<template>
|
||
<AlertDialog>
|
||
<Button variant="secondary">退出登录</Button>
|
||
<AlertDialogBackdrop
|
||
class="bg-overlay/50 dark:bg-overlay/60"
|
||
variant="blur"
|
||
>
|
||
<AlertDialogContainer>
|
||
<AlertDialogDialog
|
||
class="relative overflow-hidden border border-border/80 bg-surface shadow-2xl ring-1 ring-accent/10 sm:max-w-[400px] dark:border-border/90 dark:bg-surface dark:ring-accent/15"
|
||
>
|
||
<div
|
||
aria-hidden="true"
|
||
class="pointer-events-none absolute inset-x-0 top-0 h-24 bg-linear-to-b from-accent/6 to-transparent dark:from-accent/10"
|
||
/>
|
||
<AlertDialogHeader class="relative">
|
||
<AlertDialogIcon status="accent" />
|
||
<AlertDialogHeading>确定要退出账户吗?</AlertDialogHeading>
|
||
</AlertDialogHeader>
|
||
<AlertDialogBody class="relative">
|
||
<p class="text-muted">
|
||
您将在此设备上退出登录。除非已保存到云端,否则
|
||
<strong class="text-foreground">Acme 工作区</strong>
|
||
中未保存的工作可能会丢失。
|
||
</p>
|
||
</AlertDialogBody>
|
||
<AlertDialogFooter>
|
||
<AlertDialogClose as-child>
|
||
<Button variant="tertiary">保持登录</Button>
|
||
</AlertDialogClose>
|
||
<AlertDialogClose as-child>
|
||
<Button>退出登录</Button>
|
||
</AlertDialogClose>
|
||
</AlertDialogFooter>
|
||
</AlertDialogDialog>
|
||
</AlertDialogContainer>
|
||
</AlertDialogBackdrop>
|
||
</AlertDialog>
|
||
</template>
|