ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

Need to control the built-in TimePicker in DatePicker (RangePicker)

Open lujiaxing opened this issue 3 years ago • 0 comments
trafficstars

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Need to refine the range that "disabledtime" can control. For example, There's a time range limitation, from "1999-11-01 00:00:00" to "1999-12-23 15:00:00". The "TimePicker.disabledTime" only limit the range of date but unable to deal with the time. I can extend 1 day, but the cost is that users may select illegal time period from 1999-12-23 15:00:01 to 1999-12-23 23:59:59. Either keep the end time as 1999-12-23, but the cost is that 1999-12-23 00:00 to 1999-12-23 15:00:00 will be completely unavailable.

So the best practices might be an exposure of all the properties that "TimePicker" have, Integrated them inside a property of the "DatePicker". That could not only reslove my problem, but can also improve the control accuracy of DatePicker.

What does the proposed API look like?

  • +showTimeOptions
  • -showTime.defaultValue (replace with showTimeOptions.defaultValue)

lujiaxing avatar Jun 17 '22 09:06 lujiaxing

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Aug 17 '22 03:08 github-actions[bot]