nathanreyes / v-calendar

An elegant calendar and datepicker plugin for Vue.
https://vcalendar.io
MIT License
4.37k stars 850 forks source link

version 0.9.7 problem #328

Open darrenzo opened 5 years ago

darrenzo commented 5 years ago

I cannot use your plugin although I read your guide. No response when I click the number on the calendar. But version beta works. If I can use version beta directly in my vue-cli3 project?

My code is following:

// main.js

import Vue from 'vue'
import App from './App.vue'
import VCalendar from 'v-calendar';

Vue.use(VCalendar);
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
}).$mount('#app')

// App.vue

<template>
  <div id="app">
      <v-calendar :attributes='attrs'></v-calendar>
  </div>
</template>
<script>

export default {
  name: 'app',
   data() {
    return {
      attrs: [
        {
          key: 'today',
          highlight: {
            backgroundColor: '#ff8080',
         },
          dates: new Date()
        }
      ],
    };
  },
}
</script>
darrenzo commented 5 years ago

It's really hard to use, and often doesn't work when you configure parameters. This guide doesn't tell me how to use it correctly, and I give up.

xuyucheng commented 10 months ago

It's really hard to use, and often doesn't work when you configure parameters. This guide doesn't tell me how to use it correctly, and I give up.

are you have other calendar?