Browse Source

Merge pull request #208885 in DEC/fineui from release/11.0 to bugfix/11.0

* commit 'c71280a801fced45f7297f157be31e9eb3331b9e':
  Pull request #3222: REPORT-85040 fix: 日期控件时间会超
  auto upgrade version to 2.0.20221121190600
research/test
superman 2 years ago
parent
commit
ce7dd18f6d
  1. 2
      package.json
  2. 12
      src/case/calendar/calendar.js

2
package.json

@ -1,6 +1,6 @@
{
"name": "fineui",
"version": "2.0.20221117172352",
"version": "2.0.20221121190600",
"description": "fineui",
"main": "dist/fineui_without_conflict.min.js",
"types": "dist/lib/index.d.ts",

12
src/case/calendar/calendar.js

@ -156,13 +156,21 @@ BI.Calendar = BI.inherit(BI.Widget, {
return 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);
var year = o.year;
if (month > 12) {
month = 1;
year++;
} else if (month < 1) {
month = 12;
year--;
}
return BI.extend(td, {
type: "bi.calendar_date_item",
once: false,
forceSelected: true,
value: o.year + "-" + month + "-" + td.text,
value: year + "-" + month + "-" + td.text,
disabled: td.disabled,
cls: td.lastMonth || td.nextMonth ? "not-current-month-day": "",
cls: td.lastMonth || td.nextMonth ? "not-current-month-day" : "",
lgap: 2,
rgap: 2,
tgap: 4,

Loading…
Cancel
Save