feat: add Surface, Link and Spinner components

This commit is contained in:
maoyingjie
2026-10-21 13:04:06 +08:00
parent 9d40dc0ecb
commit 630963c652
52 changed files with 2683 additions and 162 deletions
+24
View File
@@ -0,0 +1,24 @@
<script setup lang="ts">
import { Spinner } from "@heroui-vue/components";
const SIZE_LABELS = {
lg: "大",
md: "中",
sm: "小",
xl: "特大",
} as const;
const sizes = ["sm", "md", "lg", "xl"] as const;
</script>
<template>
<div class="flex items-center gap-8">
<div
v-for="size in sizes"
:key="size"
class="flex flex-col items-center gap-2"
>
<Spinner :size="size" />
<span class="text-xs text-muted">{{ SIZE_LABELS[size] }}</span>
</div>
</div>
</template>