update DatePicker
update DatePicker
This commit is contained in:
parent
3cf7cfd1de
commit
472b4ff150
5 changed files with 120 additions and 67 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue