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

增加日期显示 mode = 'dateSelector' #26

Merged
merged 2 commits into from
Apr 5, 2019

Conversation

RobinGitHub
Copy link
Contributor

调用示例

showDatePicker(e) {
    this.pickerValueDefault = new Date('2019-02-22');
    this.mode = 'dateSelector';
    this.themeColor = '#8D0177';
    this.$refs.mpvuePicker.show();
}

showDatePicker(e) {
				this.pickerValueDefault = new Date('2019-02-22');
				this.mode = 'dateSelector';
				this.themeColor = '#8D0177';
				this.$refs.mpvuePicker.show();
			}
@KuangPF
Copy link
Member

KuangPF commented Mar 25, 2019

这个默认值好像有问题,设置的默认值为:

this.pickerValueDefault = new Date('2019-02-22');

但显示为:
pull-22

还有两点建议就是:

  1. 日期的选择范围最好固定,比如:1901-2099
  2. 代码用 eslint 检测下

@RobinGitHub
Copy link
Contributor Author

嗯,那个地方确实是个bug,时间范围我设置的是当前年份往后增加100年

@KuangPF KuangPF merged commit 8308285 into MPComponent:master Apr 5, 2019
@KuangPF KuangPF self-requested a review May 9, 2019 15: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

Successfully merging this pull request may close these issues.

2 participants