feat: initialize Vue component library and aligned documentation
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Card,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
CardDescription,
|
||||
CardContent,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<div class="flex flex-col gap-4">
|
||||
<Card class="w-[320px]" variant="transparent">
|
||||
<CardHeader>
|
||||
<CardTitle>透明</CardTitle>
|
||||
<CardDescription>背景透明,视觉层级较低(transparent)</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<p>适合次要内容或嵌套在其它容器中的卡片</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<Card class="w-[320px]" variant="default">
|
||||
<CardHeader>
|
||||
<CardTitle>默认</CardTitle>
|
||||
<CardDescription>标准外观(bg-surface)</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<p>大多数场景的默认卡片变体</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<Card class="w-[320px]" variant="secondary">
|
||||
<CardHeader>
|
||||
<CardTitle>次要</CardTitle>
|
||||
<CardDescription>中等强调(bg-surface-secondary)</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<p>用于需要适度吸引注意力的内容</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<Card class="w-[320px]" variant="tertiary">
|
||||
<CardHeader>
|
||||
<CardTitle>第三</CardTitle>
|
||||
<CardDescription>更高强调(bg-surface-tertiary)</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<p>适合主要内容或需要突出的展示位</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user