Skip to content

Commit ee10275

Browse files
Merge pull request #5796 from Countly/feat-add-slider-option-to-content-step
Feat: add slider to content builder input
2 parents 13d2d37 + 32d134b commit ee10275

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

frontend/express/public/javascripts/countly/vue/components/content.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@
405405
dropdown: 'el-select',
406406
input: 'el-input',
407407
switch: 'el-switch',
408+
slider: 'el-slider',
408409
'color-picker': 'cly-colorpicker',
409410
'input-number': 'el-input-number',
410411
};
@@ -424,6 +425,8 @@
424425
v-bind="inputProps"
425426
:value="localValue"
426427
@input="updateValue"
428+
:min="inputProps && inputProps.min"
429+
:max="inputProps && inputProps.max"
427430
class="cly-vue-content-builder__layout-step__component"
428431
:style="[ position !== 'horizontal' ? {\'width\': \'100%\'} : {\'width\': width + \'px\'}]"
429432
>
@@ -591,4 +594,4 @@
591594
</div>
592595
`
593596
}));
594-
}(window.countlyVue = window.countlyVue || {}));
597+
}(window.countlyVue = window.countlyVue || {}));

frontend/express/public/stylesheets/vue/clyvue.scss

+13-1
Original file line numberDiff line numberDiff line change
@@ -4267,6 +4267,18 @@
42674267
.el-input-group__append {
42684268
padding: 0 8px !important;
42694269
}
4270+
4271+
/* .el-slider__bar {
4272+
background-color: #0166D6;
4273+
}
4274+
4275+
.el-slider__button {
4276+
border-color: #0166D6;
4277+
} */
4278+
4279+
.el-slider__runway {
4280+
background-color: #E2E4E8;
4281+
}
42704282
}
42714283
&__header {
42724284
font-family: Inter;
@@ -4549,4 +4561,4 @@
45494561
cursor: pointer;
45504562
border-radius: 8px;
45514563
}
4552-
}
4564+
}

0 commit comments

Comments
 (0)