Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JSoon
Copy link

@JSoon JSoon commented Apr 18, 2018

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

触发条件:

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

修复步骤:

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

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

@dongshuoy
Copy link

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

@sijinglei
Copy link

sijinglei commented May 24, 2018

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

@gongyan200
Copy link

@smart-dream
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants