icehaunter / vue3-datepicker

Simple datepicker component for Vue 3
https://icehaunter.github.io/vue3-datepicker/
MIT License
150 stars 155 forks source link

Fix day view prop and add extra styling #108

Closed nerijusgaidjurgis closed 1 year ago

nerijusgaidjurgis commented 1 year ago

Daypicker/day view heading doesn't react to dayPickerHeadingFormat prop and it's impossible to change it, it keeps showing default one. Issue with day view is caused by dayPickerHeadingFormat prop that is used on a wrong component, it should be used on day-picker instead of month-picker.

Also, it's hard to distinguish Year/Month/Day/Time views as there's no CSS class or any other identifier to target.

This PR contains changes for dayPickerHeadingFormat prop and extra styling/CSS classes added to distinguish different view modes or elements inside it.

By the way, great work/plugin!

icehaunter commented 1 year ago

Thanks for the contribution! I've simplified the prop you've introduced on the PickerPopup component, and added docs for the changes