Initial commit

This commit is contained in:
2025-08-04 16:33:07 +03:30
commit f798e8e35c
9595 changed files with 1208683 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<script setup>
const sliderValues = ref([
10,
60,
])
</script>
<template>
<VRangeSlider v-model="sliderValues" />
</template>

View File

@@ -0,0 +1,13 @@
<script setup>
const sliderValues = ref([
10,
60,
])
</script>
<template>
<VRangeSlider
v-model="sliderValues"
color="success"
/>
</template>

View File

@@ -0,0 +1,14 @@
<script setup>
const slidersValues = ref([
30,
60,
])
</script>
<template>
<VRangeSlider
v-model="slidersValues"
disabled
label="Disabled"
/>
</template>

View File

@@ -0,0 +1,13 @@
<script setup>
const sliderValues = ref([
20,
40,
])
</script>
<template>
<VRangeSlider
v-model="sliderValues"
step="10"
/>
</template>

View File

@@ -0,0 +1,37 @@
<script setup>
const seasons = [
'Winter',
'Spring',
'Summer',
'Fall',
]
const icons = [
'tabler-snowflake',
'tabler-leaf',
'tabler-flame',
'tabler-droplet',
]
const sliderValues = ref([
1,
2,
])
</script>
<template>
<VRangeSlider
v-model="sliderValues"
:tick="seasons"
min="0"
max="3"
:step="1"
show-ticks="always"
thumb-label
tick-size="4"
>
<template #thumb-label="{ modelValue }">
<VIcon :icon="icons[modelValue]" />
</template>
</VRangeSlider>
</template>

View File

@@ -0,0 +1,13 @@
<script setup>
const sliderValues = ref([
20,
40,
])
</script>
<template>
<VRangeSlider
v-model="sliderValues"
direction="vertical"
/>
</template>

View File

@@ -0,0 +1,182 @@
export const basic = { ts: `<script setup lang="ts">
const sliderValues = ref([10, 60])
</script>
<template>
<VRangeSlider v-model="sliderValues" />
</template>
`, js: `<script setup>
const sliderValues = ref([
10,
60,
])
</script>
<template>
<VRangeSlider v-model="sliderValues" />
</template>
` }
export const color = { ts: `<script lang="ts" setup>
const sliderValues = ref([10, 60])
</script>
<template>
<VRangeSlider
v-model="sliderValues"
color="success"
/>
</template>
`, js: `<script setup>
const sliderValues = ref([
10,
60,
])
</script>
<template>
<VRangeSlider
v-model="sliderValues"
color="success"
/>
</template>
` }
export const disabled = { ts: `<script lang="ts" setup>
const slidersValues = ref([30, 60])
</script>
<template>
<VRangeSlider
v-model="slidersValues"
disabled
label="Disabled"
/>
</template>
`, js: `<script setup>
const slidersValues = ref([
30,
60,
])
</script>
<template>
<VRangeSlider
v-model="slidersValues"
disabled
label="Disabled"
/>
</template>
` }
export const step = { ts: `<script lang="ts" setup>
const sliderValues = ref([20, 40])
</script>
<template>
<VRangeSlider
v-model="sliderValues"
step="10"
/>
</template>
`, js: `<script setup>
const sliderValues = ref([
20,
40,
])
</script>
<template>
<VRangeSlider
v-model="sliderValues"
step="10"
/>
</template>
` }
export const thumbLabel = { ts: `<script lang="ts" setup>
const seasons = ['Winter', 'Spring', 'Summer', 'Fall']
const icons = ['tabler-snowflake', 'tabler-leaf', 'tabler-flame', 'tabler-droplet']
const sliderValues = ref([1, 2])
</script>
<template>
<VRangeSlider
v-model="sliderValues"
:tick="seasons"
min="0"
max="3"
:step="1"
show-ticks="always"
thumb-label
tick-size="4"
>
<template #thumb-label="{ modelValue }">
<VIcon :icon="icons[modelValue]" />
</template>
</VRangeSlider>
</template>
`, js: `<script setup>
const seasons = [
'Winter',
'Spring',
'Summer',
'Fall',
]
const icons = [
'tabler-snowflake',
'tabler-leaf',
'tabler-flame',
'tabler-droplet',
]
const sliderValues = ref([
1,
2,
])
</script>
<template>
<VRangeSlider
v-model="sliderValues"
:tick="seasons"
min="0"
max="3"
:step="1"
show-ticks="always"
thumb-label
tick-size="4"
>
<template #thumb-label="{ modelValue }">
<VIcon :icon="icons[modelValue]" />
</template>
</VRangeSlider>
</template>
` }
export const vertical = { ts: `<script lang="ts" setup>
const sliderValues = ref([20, 40])
</script>
<template>
<VRangeSlider
v-model="sliderValues"
direction="vertical"
/>
</template>
`, js: `<script setup>
const sliderValues = ref([
20,
40,
])
</script>
<template>
<VRangeSlider
v-model="sliderValues"
direction="vertical"
/>
</template>
` }