feat: add Disclosure DisclosureGroup and Accordion
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Button,
|
||||
Disclosure,
|
||||
DisclosureBody,
|
||||
DisclosureContent,
|
||||
DisclosureGroup,
|
||||
DisclosureHeading,
|
||||
DisclosureIndicator,
|
||||
DisclosureTrigger,
|
||||
Separator,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<DisclosureGroup class="w-full max-w-sm rounded-xl bg-default-soft p-2">
|
||||
<Disclosure id="billing">
|
||||
<DisclosureHeading>
|
||||
<DisclosureTrigger as-child>
|
||||
<Button class="w-full justify-between" variant="ghost">
|
||||
账单
|
||||
<DisclosureIndicator class="text-muted" />
|
||||
</Button>
|
||||
</DisclosureTrigger>
|
||||
</DisclosureHeading>
|
||||
<DisclosureContent>
|
||||
<DisclosureBody class="text-sm text-muted">
|
||||
发票将于每月 1 日开具。
|
||||
</DisclosureBody>
|
||||
</DisclosureContent>
|
||||
</Disclosure>
|
||||
<Separator class="my-1" />
|
||||
<Disclosure id="support">
|
||||
<DisclosureHeading>
|
||||
<DisclosureTrigger as-child>
|
||||
<Button class="w-full justify-between" variant="ghost">
|
||||
支持
|
||||
<DisclosureIndicator class="text-muted" />
|
||||
</Button>
|
||||
</DisclosureTrigger>
|
||||
</DisclosureHeading>
|
||||
<DisclosureContent>
|
||||
<DisclosureBody class="text-sm text-muted">
|
||||
请通过 help@heroui.com 联系我们。通常会在一个工作日内回复。
|
||||
</DisclosureBody>
|
||||
</DisclosureContent>
|
||||
</Disclosure>
|
||||
</DisclosureGroup>
|
||||
</template>
|
||||
Reference in New Issue
Block a user