update DatePicker

update DatePicker
This commit is contained in:
梁灏 2016-12-19 16:21:54 +08:00
parent 3cf7cfd1de
commit 472b4ff150
5 changed files with 120 additions and 67 deletions

View file

@ -194,9 +194,7 @@
return PLACEMENT_MAP[this.align];
},
selectionMode() {
if (this.type === 'week') {
return 'week';
} else if (this.type === 'month') {
if (this.type === 'month') {
return 'month';
} else if (this.type === 'year') {
return 'year';
@ -307,7 +305,7 @@
this.picker.resetView && this.picker.resetView();
});
// todo $on('on-range')
// todo $on('on-time-range')
}
if (this.internalValue instanceof Date) {
this.picker.date = new Date(this.internalValue.getTime());