56 lines
1.9 KiB
Vue
56 lines
1.9 KiB
Vue
<script setup lang="ts">
|
|
import {
|
|
Button,
|
|
Modal,
|
|
ModalBackdrop,
|
|
ModalBody,
|
|
ModalClose,
|
|
ModalCloseTrigger,
|
|
ModalContainer,
|
|
ModalDialog,
|
|
ModalFooter,
|
|
ModalHeader,
|
|
ModalHeading,
|
|
ModalIcon,
|
|
} from "@heroui-vue/components";
|
|
import { IconCircleCheck as CircleCheck } from "@tabler/icons-vue";
|
|
</script>
|
|
<template>
|
|
<Modal>
|
|
<Button variant="secondary">打开</Button>
|
|
<ModalBackdrop class="bg-overlay/50 dark:bg-overlay/65" variant="blur">
|
|
<ModalContainer>
|
|
<ModalDialog
|
|
class="relative overflow-hidden border border-border/80 bg-surface/90 shadow-2xl ring-1 ring-black/5 backdrop-blur-xl sm:max-w-[340px] dark:border-border/90 dark:bg-surface/85 dark:ring-white/10"
|
|
>
|
|
<div
|
|
aria-hidden="true"
|
|
class="pointer-events-none absolute inset-x-0 top-0 h-20 bg-linear-to-b from-neutral-500/8 to-transparent dark:from-neutral-400/10"
|
|
></div>
|
|
<div
|
|
aria-hidden="true"
|
|
class="pointer-events-none absolute inset-x-10 top-0 h-px bg-linear-to-r from-transparent via-neutral-400/40 to-transparent dark:via-neutral-500/35"
|
|
></div>
|
|
<ModalCloseTrigger></ModalCloseTrigger>
|
|
<ModalHeader class="relative">
|
|
<ModalIcon
|
|
class="bg-neutral-100 text-neutral-700 dark:bg-neutral-800 dark:text-neutral-200"
|
|
>
|
|
<CircleCheck aria-hidden="true" class="size-5"></CircleCheck>
|
|
</ModalIcon>
|
|
<ModalHeading>更改已保存</ModalHeading>
|
|
</ModalHeader>
|
|
<ModalBody class="relative">
|
|
<p class="text-sm text-muted">你的草稿已在各设备间同步。</p>
|
|
</ModalBody>
|
|
<ModalFooter>
|
|
<ModalClose as-child>
|
|
<Button class="w-full">完成</Button>
|
|
</ModalClose>
|
|
</ModalFooter>
|
|
</ModalDialog>
|
|
</ModalContainer>
|
|
</ModalBackdrop>
|
|
</Modal>
|
|
</template>
|