fix(laydate): 修复开启范围联动选择模式时,点击月份报错的问题 (#2949)

fixes #2948
This commit is contained in:
贤心
2025-11-20 15:41:26 +08:00
committed by GitHub
parent a3a28e6612
commit 489e6f5058

View File

@@ -3027,13 +3027,14 @@ layui.define(['lay', 'i18n'], function (exports) {
},
nextMonth: function () {
var YM;
if (that.rangeLinked) {
var panelYM = that.panelYM[0];
YM = that.getAsYM(panelYM.year, panelYM.month);
var dateTimeTemp = lay.extend({}, options.dateTime, that.panelYM[0], {
year: YM[0],
month: YM[1]
});
YM = that.getAsYM(panelYM.year, panelYM.month);
that.checkDate('limit').calendar(dateTimeTemp, null, 'init');
} else {
YM = that.getAsYM(dateTime.year, dateTime.month);