add snappingPoints to slider

This commit is contained in:
tobinio
2023-10-08 10:49:51 +02:00
parent ae7f7e9bd6
commit 3955b973ef
2 changed files with 62 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ const valueTwo = ref(0)
<DemoContainer>
<Slider v-model="value" :min="1000" :max="10000" :step="1000" unit="mb"/>
<Slider v-model="value" :min="1024" :max="32768" :step="1" :snapPoints='[2048,4096,8192,16384]' :snapRange='500' unit="mb"/>
<Slider v-model="valueTwo" :min="1000" :max="10000" :step="1000" unit="mb" :disabled="true"/>
</DemoContainer>