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

[Bug Report] Datetime 的dayscroller计算错误 #3390

Open
hzc315579049 opened this issue Feb 13, 2019 · 0 comments
Open

[Bug Report] Datetime 的dayscroller计算错误 #3390

hzc315579049 opened this issue Feb 13, 2019 · 0 comments

Comments

@hzc315579049
Copy link

VUX version

2.9.2

OS/Browsers version

window 10 / chrome 70

Vue version

2.6.6

Code

_makeData (type, year, month, day) {
  ...
}

Steps to reproduce

当起始日期设置为2018-03-03,结束日期设置为2019-02-07(举例)由2019-02-06 拖动年份为2018年后,年月切换为了2018-03,但是日期却是计算的是2018-02的日期,导致此时虽然为3月,但是日期最大却是28。

What is Expected?

问题的原因就在于select后只进行了一次计算,在此次计算后月份从2月变成了3月,但是没有重新计算日期,还是按照2018-02来计算的日期,所以导致了最大日期的计算错误。

What is actually happening?

2018-03的日期最大值变成了28

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

No branches or pull requests

1 participant