27 lines
609 B
Vue
27 lines
609 B
Vue
<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>
|