Browse Source

REPORT-35522 fix: date_picker setValue的时候刷新下可用月份

es6
windy 4 years ago
parent
commit
bc9fbbfa19
  1. 1
      changelog.md
  2. 1
      src/widget/date/calendar/picker.date.js

1
changelog.md

@ -1,5 +1,6 @@
# 更新日志
2.0(2020-07)
- 修复了datePicker在setValue的时候没有动态刷新可用月份的问题
- 同步复选下拉及其面板新增getAllValue获取所有已选值
- 同步复选下拉树及其面板新增getAllValue获取完整的选中树节点
- 修复date_picker最大值最小值与面板展示判断问题

1
src/widget/date/calendar/picker.date.js

@ -176,6 +176,7 @@ BI.DatePicker = BI.inherit(BI.Widget, {
this._year = BI.parseInt(ob.year);
this._month = BI.parseInt(ob.month);
this.year.setValue(ob.year);
this._refreshMonth();
this.month.setValue(ob.month);
this._checkLeftValid();
this._checkRightValid();

Loading…
Cancel
Save