Closed s-fog closed 2 years ago
Are you using component in the browser script tag? Or some bundler like Vue-CLI or Vite?
Thanks for reply! Iam using laravel + vue
mix.js("resources/js/app.js", "public/js") .vue()
Launching is npm run watch
Installing by this guide https://arter.dev/how-to-install-vue-3-in-laravel-8-from-scratch
Can you try passing prop like month-picker
and tell me if it works
It works! Thank you so much. I it described somewhere in docs?
There is info when you register the component in the browser, I guess, this is happening when using .min.js build, I'll see what is going on there.
Hi. Have strange issue. Iam doing just same in docs, and picker not working. Html
Opening as regular datepicker. I want monthpicker.
![image](https://user-images.githubusercontent.com/10043516/151694770-ab398ed7-cb25-45cc-b69a-852333ecbcaf.png)
<Datepicker v-model="mmonth" monthPicker />
App.vueconst ..., mmonth = ref({ month: new Date().getMonth(), year: new Date().getFullYear() }) return { ..., mmonth ... }
Renders regular datepicker without any default value.I tried initialize mmonth.month and mmonth.year inside onMounted method, but it works the same way. I tried range datepicker and it works as expected. But this no. What am i doing wrong?