Files
heroui-vue/apps/docs/demos/drawer-custom-styles.vue
T

41 lines
1.1 KiB
Vue

<script setup lang="ts">
import {
Button,
Drawer,
DrawerBackdrop,
DrawerBody,
DrawerClose,
DrawerContent,
DrawerDialog,
DrawerFooter,
DrawerHeader,
DrawerHeading,
} from "@heroui-vue/components";
</script>
<template>
<Drawer>
<Button variant="secondary">打开筛选</Button>
<DrawerBackdrop variant="blur">
<DrawerContent placement="right">
<DrawerDialog class="border-l border-border/80 bg-surface">
<DrawerHeader>
<DrawerHeading class="text-foreground">筛选</DrawerHeading>
</DrawerHeader>
<DrawerBody>
<p class="text-sm text-muted">按状态、负责人或日期缩小结果范围。</p>
</DrawerBody>
<DrawerFooter>
<DrawerClose as-child>
<Button variant="secondary">取消</Button>
</DrawerClose>
<DrawerClose as-child>
<Button>应用</Button>
</DrawerClose>
</DrawerFooter>
</DrawerDialog>
</DrawerContent>
</DrawerBackdrop>
</Drawer>
</template>