element icon indicating copy to clipboard operation
element copied to clipboard

[Feature Request] I hope the time picker component can add a step size attribute, which is currently not available

Open junliangwei opened this issue 2 years ago • 7 comments

Existing Component

Component Name

time picker

Description

I hope the time picker component can add a step size attribute, which is currently not available. I hope the time picker component can add a step size attribute, which is currently not available. I hope the time picker component can add a step size attribute, which is currently not available. I hope the time picker component can add a step size attribute, which is currently not available. I hope the time picker component can add a step size attribute, which is currently not available. I hope the time picker component can add a step size attribute, which is currently not available.

junliangwei avatar Oct 16 '23 03:10 junliangwei

请详细描述,或举例说明

webvs2 avatar Oct 17 '23 02:10 webvs2

请详细描述,或举例说明

第一个是elementui time-picker组件,没有设置步长选项,默认从0到59 image 第二个是ant-design-vue的time-picker,我想要的是这个,请问有办法把这个属性添加进当前vue2的el组件库么。 image

junliangwei avatar Oct 17 '23 02:10 junliangwei

是需要显示特定时间点吗

webvs2 avatar Oct 23 '23 12:10 webvs2

感觉是可以设置不同的间隔

wangdaodao avatar Oct 26 '23 00:10 wangdaodao

是需要显示特定时间点吗

当前无法设置time-picker的时间间隔,默认是0到59的。 我希望能够有可以设置它的时间间隔,根据需求来设置,比如我想让“分”这个单位设置步长为5,那么分选项菜单就为0,5,10... 其他时、秒同理。 这个功能挺重要的。我尝试过修改源码, 但是功力不足放弃了。

junliangwei avatar Oct 26 '23 01:10 junliangwei

是需要显示特定时间点吗

当前无法设置time-picker的时间间隔,默认是0到59的。 我希望能够有可以设置它的时间间隔,根据需求来设置,比如我想让“分”这个单位设置步长为5,那么分选项菜单就为0,5,10... 其他时、秒同理。 这个功能挺重要的。我尝试过修改源码, 但是功力不足放弃了。

让我们考虑下是否可以试着提供特定时间点,来实现这个间隔需求,间隔能力将考虑加入,建议移步讨论区来探讨并计划开发

webvs2 avatar Oct 26 '23 02:10 webvs2

是的 ,设置时间间隔的功能应该在每个涉及“时分秒”的时间选择器都需要有到。

junliangwei avatar Dec 04 '23 01:12 junliangwei