fix#6129
This commit is contained in:
parent
630bc69d97
commit
29a93c3e4d
1 changed files with 5 additions and 1 deletions
|
@ -296,7 +296,11 @@
|
||||||
},
|
},
|
||||||
changePanelDate(panel, type, increment, updateOtherPanel = true){
|
changePanelDate(panel, type, increment, updateOtherPanel = true){
|
||||||
const current = new Date(this[`${panel}PanelDate`]);
|
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;
|
this[`${panel}PanelDate`] = current;
|
||||||
|
|
||||||
if (!updateOtherPanel) return;
|
if (!updateOtherPanel) return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue