vue中,format与value-format比较:
format="yyyy-MM-dd HH:mm:ss"
界面显示:20201125 000000至20201225 000000
&time[]=2020-12-24T16:00:00.000Z&time[]=2020-12-24T16:00:00.000Z
format="yyyyMMdd HHmmss"
界面显示:20201123 000000至20201226 000000
&time[]=2020-11-22T16:00:00.000Z&time[]=2020-12-25T16:00:00.000Z

value-format="yyyy-MM-dd HH:mm:ss"
界面显示:2020-11-23 00:00:00至2020-12-26 00:00:00
&time[]=2020-11-23+00:00:00&time[]=2020-12-26+00:00:00
value-format="yyyyMMdd HHmmss"
界面显示:2020-11-09 00:00:00至2020-12-16 00:00:00
&time[]=20201109+000000&time[]=20201216+000000

结论:采用value-format

Logo

前往低代码交流专区

更多推荐