diff --git a/changelog.md b/changelog.md index 906151a9f..347f6b071 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # 更新日志 2.0(2020-07) +- 修复了datePicker在setValue的时候没有动态刷新可用月份的问题 - 同步复选下拉及其面板新增getAllValue获取所有已选值 - 同步复选下拉树及其面板新增getAllValue获取完整的选中树节点 - 修复date_picker最大值最小值与面板展示判断问题 diff --git a/src/widget/date/calendar/picker.date.js b/src/widget/date/calendar/picker.date.js index 06b556ed3..6ba45d705 100644 --- a/src/widget/date/calendar/picker.date.js +++ b/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();