Skip to content

Commit 2ce1938

Browse files
author
Lionel Bijaoui
committed
Add dynamic class to help styling of the noUiSlider field
1 parent b48c7f1 commit 2ce1938

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/fields/fieldNoUiSlider.vue

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<template lang="jade">
2-
div.slider(:disabled="disabled")
1+
<template>
2+
<div class="slider" :disabled="disabled" :class="{ 'contain-pips': typeof schema.noUiSliderOptions.pips !== 'undefined', 'contain-tooltip': schema.noUiSliderOptions.tooltips }"></div>
33
</template>
44

55
<script>
@@ -91,7 +91,16 @@
9191
.field-wrap {
9292
display: block;
9393
}
94-
94+
.contain-pips {
95+
margin-bottom: 30px;
96+
}
97+
.contain-tooltip {
98+
margin-top: 30px;
99+
}
100+
.noUi-vertical {
101+
height: 200px;
102+
margin: 10px 0;
103+
}
95104
}
96105
97106
</style>

0 commit comments

Comments
 (0)