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

DatePicker 默认时间不在最小时间和最大时间的范围内,取不到值 #75

Closed
zlab opened this issue May 9, 2018 · 1 comment
Assignees
Labels
feature New feature or request
Milestone

Comments

@zlab
Copy link

zlab commented May 9, 2018

mand-mobile version/项目版本
1.2.2

参数
minDate: 2000-08-08
maxDate: 2018-08-08
defaultDate:  1990-08-08

此时由于1990小于2000,选择器会显示最小的年,即2000-08-08,但是取值的时候
this.$refs.datePicker.getFormatDate('yyyy-MM-dd');拿到的确是'yyyy-08-08'

@xxyan0205 xxyan0205 added the feature New feature or request label May 9, 2018
@xxyan0205
Copy link
Collaborator

原来是将这种情况当异常情况处理,所以没有做容错处理。

@xxyan0205 xxyan0205 added this to the v1.3.x milestone May 11, 2018
@xxyan0205 xxyan0205 self-assigned this May 14, 2018
moyus pushed a commit that referenced this issue May 28, 2018
* feature(picker):reset picker when cancel

* feature:add maskClosable prop #64

* fix(date-picker):amend defaultDate according to minDate and maxDate #75

* feature(cashier):update channel display logic #77

* feat(tab-picker): add revoke operation feature  when user click the cancel button

* feat(tab-pciker): add async casacade tabpicker initial feature

* feature(action-sheet & selector):add max-height limit prop #86

* fix(tab-picker): recursion breakpoints continue

* fix(cashier):fix unit test error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants