ManukMinasyan / vue-functional-calendar

Vue.js Functional Calendar | Component/Package
https://vue-functional-calendar.now.sh/
MIT License
467 stars 84 forks source link

markedDates #137

Closed gorthoure closed 2 years ago

gorthoure commented 2 years ago

The markedDates custom classes are not working correctly or are not working at all. This is very sad I found a place in the code in utils/calendarMethods.js where it should be processed, but I don't see the difference except of the type definition((

let checkMarked
          // With Custom Classes
          if (typeof this.fConfigs.markedDates[0] === 'object') {
            checkMarked = this.fConfigs.markedDates.find(markDate => {
              return markDate.date === this.helpCalendar.formatDate(date)
            })
          } else {
            // Without Classes
            checkMarked = this.fConfigs.markedDates.find(markDate => {
              return markDate === this.helpCalendar.formatDate(date)
            })
          }

Am I misunderstanding something or is this part just not finished? If so, will it be added?

gorthoure commented 2 years ago

I'm sorry, I didn't figure it out. The class is added, but since I did not register it, I did not see the changes