26 lines
603 B
Vue
26 lines
603 B
Vue
<script setup lang="ts">
|
|
import { Spinner } from "@heroui-vue/components";
|
|
|
|
const COLOR_LABELS = {
|
|
accent: "强调",
|
|
current: "当前",
|
|
danger: "危险",
|
|
success: "成功",
|
|
warning: "警告",
|
|
} as const;
|
|
|
|
const colors = ["current", "accent", "success", "warning", "danger"] as const;
|
|
</script>
|
|
<template>
|
|
<div class="flex items-center gap-8">
|
|
<div
|
|
v-for="color in colors"
|
|
:key="color"
|
|
class="flex flex-col items-center gap-2"
|
|
>
|
|
<Spinner :color="color" />
|
|
<span class="text-xs text-muted">{{ COLOR_LABELS[color] }}</span>
|
|
</div>
|
|
</div>
|
|
</template>
|