mengxiong10 / vue2-datepicker

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

[Feature request] Time selection panel, disable scrolling for AM / PM subpanel #697

Closed akhchan99 closed 2 years ago

akhchan99 commented 2 years ago

What problem does this feature solve?

If the v-model time is in the PM, the AM will be scroll out of viewable area, since there're just 2 items in the list, it doesn't really need the scroll option.

I think this could apply to specified time selection too, if the list is short, scrolling could be disabled?

What does the proposed API look like?

mengxiong10 commented 2 years ago

If you want to disable scroll. You can change the css.

.mx-time-list[data-type="ampm"]::after {
  height: 0 !important;
}