Skip to content

Commit

Permalink
add parameters for slider documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
LrxGaelle committed Sep 6, 2023
1 parent 620f2a6 commit 15e4adc
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions src/web/views/Components/Slider/Slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,27 @@
<ComponentCode :componentTitle="$route.name" language="javascript">
<template #module>
<div class="m-t-24">
<BIMDataSlider v-model="slider" min="0" max="100" />
<BIMDataSlider v-model="slider" :min="minRange" :max="maxRange" />
</div>
</template>

<template #parameters> </template>
<template #parameters>
<BIMDataInput
type="number"
placeholder="Min range"
v-model="minRange"
/>
<BIMDataInput
type="number"
placeholder="Max range"
v-model="maxRange"
/>
<BIMDataInput
type="number"
placeholder="Slider default value"
v-model="slider"
/>
</template>

<template #import>
import BIMDataSlider from
Expand All @@ -33,7 +49,9 @@ export default {
},
data() {
return {
slider: 0,
slider: 40,
minRange: 0,
maxRange: 100,
};
},
};
Expand Down

0 comments on commit 15e4adc

Please sign in to comment.