[Vuejs]-Output data range between selected days via indexOf vue3

0👍

Try this (i can’t check it)

:class="{
        active:  isActive,
        between: isBetween,
}"
// why exist a space in "choosing dates(date)" ???
@click="choosingDates(date)"


computed: {
    isBetween() {
       return between.includes(date)
    },
    isActive() {
       return currentMonthInNumber + '/' + date + '/' + currentYear === firstDay || currentMonthInNumber + '/' + date + '/' + currentYear === lastDay
    }
}

Leave a comment