fix: datepicker left picker
This commit is contained in:
parent
fc027117c7
commit
e02490500d
1 changed files with 1 additions and 5 deletions
|
@ -296,11 +296,7 @@
|
|||
},
|
||||
changePanelDate(panel, type, increment, updateOtherPanel = true){
|
||||
const current = new Date(this[`${panel}PanelDate`]);
|
||||
if (panel === 'left') {
|
||||
current[`set${type}`](current[`get${type}`](), 0);
|
||||
} else {
|
||||
current[`set${type}`](current[`get${type}`]() + increment);
|
||||
}
|
||||
current[`set${type}`](current[`get${type}`]() + increment);
|
||||
this[`${panel}PanelDate`] = current;
|
||||
|
||||
if (!updateOtherPanel) return;
|
||||
|
|
Loading…
Add table
Reference in a new issue