59 lines
1.9 KiB
Vue
59 lines
1.9 KiB
Vue
<script setup lang="ts">
|
||
import { Surface } from "@heroui-vue/components";
|
||
</script>
|
||
<template>
|
||
<div class="flex flex-col gap-4">
|
||
<div class="flex flex-col gap-2">
|
||
<p class="text-sm font-medium text-muted">默认</p>
|
||
<Surface
|
||
class="flex min-w-[320px] flex-col gap-3 rounded-3xl p-6"
|
||
variant="default"
|
||
>
|
||
<h3 class="text-base font-semibold text-foreground">表面内容</h3>
|
||
<p class="text-sm text-muted">
|
||
这是默认表面变体,使用 bg-surface 样式。
|
||
</p>
|
||
</Surface>
|
||
</div>
|
||
|
||
<div class="flex flex-col gap-2">
|
||
<p class="text-sm font-medium text-muted">次要</p>
|
||
<Surface
|
||
class="flex min-w-[320px] flex-col gap-3 rounded-3xl p-6"
|
||
variant="secondary"
|
||
>
|
||
<h3 class="text-base font-semibold text-foreground">表面内容</h3>
|
||
<p class="text-sm text-muted">
|
||
这是次要表面变体,使用 bg-surface-secondary 样式。
|
||
</p>
|
||
</Surface>
|
||
</div>
|
||
|
||
<div class="flex flex-col gap-2">
|
||
<p class="text-sm font-medium text-muted">第三</p>
|
||
<Surface
|
||
class="flex min-w-[320px] flex-col gap-3 rounded-3xl p-6"
|
||
variant="tertiary"
|
||
>
|
||
<h3 class="text-base font-semibold text-foreground">表面内容</h3>
|
||
<p class="text-sm text-muted">
|
||
这是第三表面变体,使用 bg-surface-tertiary 样式。
|
||
</p>
|
||
</Surface>
|
||
</div>
|
||
|
||
<div class="flex flex-col gap-2">
|
||
<p class="text-sm font-medium text-muted">透明</p>
|
||
<Surface
|
||
class="flex min-w-[320px] flex-col gap-3 rounded-3xl border p-6"
|
||
variant="transparent"
|
||
>
|
||
<h3 class="text-base font-semibold text-foreground">表面内容</h3>
|
||
<p class="text-sm text-muted">
|
||
这是透明表面变体,无背景,适用于遮罩层和自定义背景的卡片。
|
||
</p>
|
||
</Surface>
|
||
</div>
|
||
</div>
|
||
</template>
|