Innologica / vue2-daterange-picker

Vue2 date range picker
https://innologica.github.io/vue2-daterange-picker/
MIT License
330 stars 209 forks source link

Suggestion: Move data.locale in DateRangePicker.vue to computed #325

Open passerby-cjl opened 1 month ago

passerby-cjl commented 1 month ago

Thanks for your awesome project! When using this project, the property 'locale' is computed once it is conveyed to DateRangePicker in the function data(). To meet the need of change locale, I suggest moving it to computed part. The change should happen in file 'DateRangePicker.vue'. It will be a quick fix. Thx!