docs: complete handbook and prepare component verification tasks
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user