feat: migrate Slider with native range semantics and strict ESM declarations
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user