mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Refine small things
This commit is contained in:
parent
9d617f3cbb
commit
77c45529bd
@ -180,10 +180,9 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
setSliderValuesCallback(
|
setSliderValuesCallback(isValid, { collectedInputData, sliderData, sliderSettings }) {
|
||||||
isValid,
|
// all changes of 'this.sliders' has to be filled in from the top to be spread to the component slider and all slider components in the slot
|
||||||
{ collectedInputData, sliderData, sliderSettings }, // sliderCallback = null,
|
|
||||||
) {
|
|
||||||
this.sliderData.sliders[this.sliderIndex].validated = isValid
|
this.sliderData.sliders[this.sliderIndex].validated = isValid
|
||||||
|
|
||||||
if (collectedInputData) {
|
if (collectedInputData) {
|
||||||
@ -218,11 +217,15 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
sliderSelectorCallback(selectedIndex) {
|
sliderSelectorCallback(selectedIndex) {
|
||||||
|
// all changes of 'this.sliders' has to be filled in from the top to be spread to the component slider and all slider components in the slot
|
||||||
|
|
||||||
if (selectedIndex <= this.sliderIndex + 1 && selectedIndex < this.sliderData.sliders.length) {
|
if (selectedIndex <= this.sliderIndex + 1 && selectedIndex < this.sliderData.sliders.length) {
|
||||||
this.sliderData.sliderIndex = selectedIndex
|
this.sliderData.sliderIndex = selectedIndex
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
buttonCallback(success) {
|
buttonCallback(success) {
|
||||||
|
// all changes of 'this.sliders' has to be filled in from the top to be spread to the component slider and all slider components in the slot
|
||||||
|
|
||||||
return success
|
return success
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user