dbrekalo / vue-date-pick

Lightweight and mobile friendly date time picker based on Vue. Vue date pick emphasizes performance, elegant and usable UI on all screen sizes and simplicity of configuration. Has no dependencies on css frameworks or date libraries. Weighs less then 5KB.
https://dbrekalo.github.io/vue-date-pick/
MIT License
251 stars 84 forks source link

The component is not functioning with version Vue .3 #69

Open raluseru opened 3 years ago

raluseru commented 3 years ago

The error I get in the console is: vueDatePick.js:1 Uncaught (in promise) TypeError: Cannot read property '_c' of undefined at Proxy.p (vueDatePick.js:1)

Waseem-Almoliky commented 3 years ago

vue3 has new v-modal syntax. change the following for a quick fix.

in your code the import will be import DatePick from "vue-date-pick/src/vueDatePick"; the component change v-modal to v-model:value

in "node_modules/vue-date-pick/src/vueDatePick.vue" replace every $emit('input', anything ) vue with $emit('update:value', anything );

hope if there is better solution. but this worked for me. hope it helps some one