feat: migrate Slider with native range semantics and strict ESM declarations

This commit is contained in:
maoyingjie
2026-10-23 13:12:26 +08:00
parent b1cb00deba
commit 4da45b109e
40 changed files with 2239 additions and 3 deletions
+26
View File
@@ -0,0 +1,26 @@
<script setup lang="ts">
import {
Label,
Slider,
SliderOutput,
SliderTrack,
SliderFill,
SliderThumb,
} from "@heroui-vue/components";
import { ref } from "vue";
import type { SliderValue } from "@heroui-vue/components";
const value = ref<SliderValue>(25);
</script>
<template>
<div class="flex w-full max-w-xs flex-col gap-4">
<Slider v-model="value">
<Label>音量</Label>
<SliderOutput />
<SliderTrack>
<SliderFill />
<SliderThumb />
</SliderTrack>
</Slider>
<p class="text-sm text-muted">当前数值:{{ value }}</p>
</div>
</template>