zx-calendar

Vue2 demo Vue3 demo React demo and docs
const testCalendar = new ZxCalendar({
  el: '#testCalendar .test-wrapper',
  defaultDate: '2020/02/21',
  hideFooter: true,
})

testCalendar.on('change', list => {
  console.log(JSON.stringify(list, null, 2))
})

setTimeout(function () {
  console.log('setDate')
  testCalendar.setDate('2020年08月19日(水) 22:12:09 PM')
  console.log('getDate', testCalendar.getDate())
}, 3000)