From 28df1c23d1842aaa9b89316b01634ee5e792c4c3 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 4 Jul 2018 15:36:01 +0800 Subject: [PATCH] update --- dist/bundle.js | 3 ++- dist/case.js | 3 ++- dist/fineui.js | 3 ++- src/case/calendar/calendar.js | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index ae5eec605..93fb125ee 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -74204,6 +74204,7 @@ BI.Calendar = BI.inherit(BI.Widget, { items = BI.map(items, function (i, item) { return BI.map(item, function (j, td) { + var month = td.lastMonth ? o.month - 1 : (td.nextMonth ? o.month + 1 : o.month); return BI.extend(td, { type: "bi.text_item", cls: "bi-list-item-select", @@ -74212,7 +74213,7 @@ BI.Calendar = BI.inherit(BI.Widget, { once: false, forceSelected: true, height: 24, - value: o.year + "-" + o.month + "-" + td.text, + value: o.year + "-" + month + "-" + td.text, disabled: td.lastMonth || td.nextMonth || td.disabled // selected: td.currentDay }); diff --git a/dist/case.js b/dist/case.js index 505516a5a..c7f21ab4c 100644 --- a/dist/case.js +++ b/dist/case.js @@ -1703,6 +1703,7 @@ BI.Calendar = BI.inherit(BI.Widget, { items = BI.map(items, function (i, item) { return BI.map(item, function (j, td) { + var month = td.lastMonth ? o.month - 1 : (td.nextMonth ? o.month + 1 : o.month); return BI.extend(td, { type: "bi.text_item", cls: "bi-list-item-select", @@ -1711,7 +1712,7 @@ BI.Calendar = BI.inherit(BI.Widget, { once: false, forceSelected: true, height: 24, - value: o.year + "-" + o.month + "-" + td.text, + value: o.year + "-" + month + "-" + td.text, disabled: td.lastMonth || td.nextMonth || td.disabled // selected: td.currentDay }); diff --git a/dist/fineui.js b/dist/fineui.js index c8749e75e..ea3de0f3b 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -74453,6 +74453,7 @@ BI.Calendar = BI.inherit(BI.Widget, { items = BI.map(items, function (i, item) { return BI.map(item, function (j, td) { + var month = td.lastMonth ? o.month - 1 : (td.nextMonth ? o.month + 1 : o.month); return BI.extend(td, { type: "bi.text_item", cls: "bi-list-item-select", @@ -74461,7 +74462,7 @@ BI.Calendar = BI.inherit(BI.Widget, { once: false, forceSelected: true, height: 24, - value: o.year + "-" + o.month + "-" + td.text, + value: o.year + "-" + month + "-" + td.text, disabled: td.lastMonth || td.nextMonth || td.disabled // selected: td.currentDay }); diff --git a/src/case/calendar/calendar.js b/src/case/calendar/calendar.js index cd65b6b3b..35b391b38 100644 --- a/src/case/calendar/calendar.js +++ b/src/case/calendar/calendar.js @@ -102,6 +102,7 @@ BI.Calendar = BI.inherit(BI.Widget, { items = BI.map(items, function (i, item) { return BI.map(item, function (j, td) { + var month = td.lastMonth ? o.month - 1 : (td.nextMonth ? o.month + 1 : o.month); return BI.extend(td, { type: "bi.text_item", cls: "bi-list-item-select", @@ -110,7 +111,7 @@ BI.Calendar = BI.inherit(BI.Widget, { once: false, forceSelected: true, height: 24, - value: o.year + "-" + o.month + "-" + td.text, + value: o.year + "-" + month + "-" + td.text, disabled: td.lastMonth || td.nextMonth || td.disabled // selected: td.currentDay });