mengxiong10 / vue2-datepicker

A datepicker / datetimepicker component for Vue2
https://mengxiong10.github.io/vue2-datepicker/index.html
MIT License
1.52k stars 406 forks source link

[Feature request] in-range prop for date cells for range using 2 basic datepicker #497

Open virtualbjorn opened 4 years ago

virtualbjorn commented 4 years ago

What problem does this feature solve? A highlighting function for from and to dates with 2 separate basic datepicker

What does the proposed API look like? It will look like Calendar Range but with 2 basic datepicker

mengxiong10 commented 4 years ago

https://codesandbox.io/s/beforeafter-z06gv?file=/src/App.vue

virtualbjorn commented 4 years ago

Thanks for a swift response!

EDIT: Will keep this issue opened for now, if this feature will be added in the future updates. It works like a charm!

Dragonbr commented 3 years ago

https://codesandbox.io/s/beforeafter-z06gv?file=/src/App.vue

Could be possible the same but with two months displayed instead of one, like Calendar Range?

Dragonbr commented 3 years ago

Any news on that @mengxiong10 ? Thanks in advance!

mengxiong10 commented 3 years ago

@Dragonbr Just use range and type="month"

Dragonbr commented 3 years ago

That's not working as expected @mengxiong10, I would like to have the range behaviour like the example above but instead of a single calendar panel, two of them. In other words, a basic datepicker with two calendar panel per each datepicker of the range. Thanks!

mengxiong10 commented 3 years ago

@Dragonbr https://codesandbox.io/s/range-picker-with-one-calendar-jvv5s?file=/src/App.vue

Dragonbr commented 3 years ago

Thanks for the reply @mengxiong10 Really I'm looking for something like that: image

It means that example: https://codesandbox.io/s/beforeafter-z06gv?file=/src/App.vue but with a calendar range inside or two calendar panels.

Thanks anyway!

MOHAMMADHMEAD commented 2 years ago

any update on this ? @mengxiong10

mengxiong10 commented 2 years ago

@MOHAMMADHMEAD https://github.com/mengxiong10/vue2-datepicker/issues/497#issuecomment-656445340