feat: migrate Slider with native range semantics and strict ESM declarations
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Label,
|
||||
Slider,
|
||||
SliderOutput,
|
||||
SliderTrack,
|
||||
SliderFill,
|
||||
SliderThumb,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
<template>
|
||||
<Slider class="w-full max-w-xs" :default-value="40">
|
||||
<Label class="font-medium text-foreground">亮度</Label>
|
||||
<SliderOutput class="text-xs text-muted tabular-nums" />
|
||||
<SliderTrack class="bg-default">
|
||||
<SliderFill class="bg-accent" />
|
||||
<SliderThumb class="bg-accent after:bg-accent-foreground" />
|
||||
</SliderTrack>
|
||||
</Slider>
|
||||
</template>
|
||||
Reference in New Issue
Block a user