fix DatePicker problem
This commit is contained in:
parent
03a04a2690
commit
588161a020
1 changed files with 4 additions and 1 deletions
|
@ -298,7 +298,10 @@
|
||||||
const current = new Date(this[`${panel}PanelDate`]);
|
const current = new Date(this[`${panel}PanelDate`]);
|
||||||
// fix https://github.com/view-design/ViewUI/issues/418
|
// fix https://github.com/view-design/ViewUI/issues/418
|
||||||
// 强行把左视图日期设置为1号
|
// 强行把左视图日期设置为1号
|
||||||
current[`set${type}`](current[`get${type}`]() + increment, 1);
|
// FullYear 不能设置https://github.com/iview/iview/issues/6600
|
||||||
|
if (type === 'FullYear') current[`set${type}`](current[`get${type}`]() + increment);
|
||||||
|
else current[`set${type}`](current[`get${type}`]() + increment, 1);
|
||||||
|
|
||||||
this[`${panel}PanelDate`] = current;
|
this[`${panel}PanelDate`] = current;
|
||||||
|
|
||||||
if (!updateOtherPanel) return;
|
if (!updateOtherPanel) return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue