docs: complete handbook and prepare component verification tasks

This commit is contained in:
maoyingjie
2026-10-27 21:46:42 +08:00
parent 4da00943f1
commit 26df6e88a2
32 changed files with 2207 additions and 39 deletions
+47
View File
@@ -0,0 +1,47 @@
<script setup lang="ts">
import { ref } from "vue";
import {
Button,
Spinner,
Skeleton,
Popover,
PopoverContent,
PopoverDialog,
PopoverHeading,
} from "@heroui-vue/components";
const reduced = ref(false);
const target = ref<HTMLElement>();
</script>
<template>
<section
ref="target"
:data-reduce-motion="reduced ? 'true' : undefined"
class="motion-demo"
>
<label>
<input v-model="reduced" type="checkbox" />
减少动态效果
</label>
<div class="flex items-center gap-4">
<Spinner aria-label="加载中" />
<Skeleton class="h-6 w-32" />
<Button>点按动画</Button>
</div>
<Popover>
<Button>查看进出场动画</Button>
<PopoverContent :to="target">
<PopoverDialog>
<PopoverHeading>动画与卸载</PopoverHeading>
<p>关闭时保留退出阶段;减少动态效果时禁用装饰动画。</p>
</PopoverDialog>
</PopoverContent>
</Popover>
</section>
</template>
<style scoped>
.motion-demo {
width: 100%;
display: grid;
gap: 20px;
}
</style>