feat: add ProgressBar ProgressCircle and Meter
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Label,
|
||||
Meter,
|
||||
MeterFill,
|
||||
MeterOutput,
|
||||
MeterTrack,
|
||||
} from "@heroui-vue/components";
|
||||
|
||||
const sizeRows = [
|
||||
{ color: "success" as const, label: "小", size: "sm" as const, value: 40 },
|
||||
{ color: "accent" as const, label: "中", size: "md" as const, value: 60 },
|
||||
{ color: "warning" as const, label: "大", size: "lg" as const, value: 80 },
|
||||
];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex w-64 flex-col gap-6">
|
||||
<Meter
|
||||
v-for="row in sizeRows"
|
||||
:key="row.size"
|
||||
:color="row.color"
|
||||
:size="row.size"
|
||||
:value="row.value"
|
||||
>
|
||||
<Label>{{ row.label }}</Label>
|
||||
<MeterOutput />
|
||||
<MeterTrack>
|
||||
<MeterFill />
|
||||
</MeterTrack>
|
||||
</Meter>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user