iview [Feature Request] wants to be able to implement the date selection box of the daterange type, select a date, and then trigger the event to get the current date

vwkv1x7d  于 2个月前  发布在  其他
关注(0)|答案(1)|浏览(25)

What problem does this feature solve?

希望能够选择了一个日期后,触发事件获取到当前日期进而设置禁止选择范围

What does the proposed API look like?

项目中要求使用的插件type为daterange,新的要求是选择了一个日期后,自动将该日期的前后30天以外的范围设置为禁止选择,但是@on-Change事件只有在选择了两个日期之后才能触发。希望能够选择了一个日期后,触发事件获取到当前日期进而设置禁止选择范围

yrdbyhpb

yrdbyhpb1#

Translation of this issue:

What problem does this feature solve?

Hope to be able to select a date, trigger the event to the current date and then set the prohibited selection range.

What does the proposed API look like?

The plug-in type required in the project is daterange. The new requirement is that after selecting a date, the range from 30 days before and after that date is automatically set to prohibit selection, but the @on-Change event can only be triggered after selecting two dates. Hope to be able to select a date, trigger the event to the current date and then set the prohibited selection range.

相关问题