Browse Source

REPORT-83562 feat: 日期控件非本月的日期可选

es6
Treecat 2 years ago
parent
commit
ebaf1dad8a
  1. 3
      src/case/calendar/calendar.js
  2. 5
      src/less/case/calendar/calendar.less

3
src/case/calendar/calendar.js

@ -161,7 +161,8 @@ BI.Calendar = BI.inherit(BI.Widget, {
once: false,
forceSelected: true,
value: o.year + "-" + month + "-" + td.text,
disabled: td.lastMonth || td.nextMonth || td.disabled,
disabled: td.disabled,
cls: td.lastMonth || td.nextMonth ? "not-current-month-day": "",
lgap: 2,
rgap: 2,
tgap: 4,

5
src/less/case/calendar/calendar.less

@ -0,0 +1,5 @@
@import "../../index.less";
.bi-calendar-date-item.not-current-month-day {
color: @color-bi-text-disabled-button !important;
}
Loading…
Cancel
Save