feat: migrate Slider with native range semantics and strict ESM declarations
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<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="60"
|
||||
:format-options="{ currency: 'USD', style: 'currency' }"
|
||||
>
|
||||
<Label>价格</Label>
|
||||
<SliderOutput />
|
||||
<SliderTrack>
|
||||
<SliderFill />
|
||||
<SliderThumb />
|
||||
</SliderTrack>
|
||||
</Slider>
|
||||
</template>
|
||||
Reference in New Issue
Block a user