laydate icon indicating copy to clipboard operation
laydate copied to clipboard

修复当type: 'month'时,点击月份,日期选择器未自动关闭的issue

Open JSoon opened this issue 7 years ago • 4 comments

由于场景需要进行年月选择,但发现当设置type: 'month'时,选择月份后日期选择器并未自动关闭。

触发条件:

  1. 非范围选择
  2. 年月选择器
  3. 点击了月列表中的月份

修复步骤:

  1. 进行日期校验
  2. 触发done回调函数
  3. 设置年月并移除控件

实现效果: apr-18-2018 14-57-07

JSoon avatar Apr 18 '18 06:04 JSoon

移动端范围日期选择,两个月份太宽显示不全,怎么解决?

dongshuoy avatar May 17 '18 02:05 dongshuoy

type: 'year'有同样的问题,选择完不会自动关闭 根据你的修复我填了如下代码: image

sijinglei avatar May 24 '18 09:05 sijinglei

gongyan200 avatar Sep 26 '18 12:09 gongyan200

@dongshuoy 移动端选择时间段的时候太宽,有解决吗

smart-dream avatar May 07 '19 09:05 smart-dream