From bc9fbbfa1961a88a02fdc3f8463332e7073a94ad Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 15 Jul 2020 17:22:43 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-35522=20fix:=20date=5Fpicker=20setValue?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E5=88=B7=E6=96=B0=E4=B8=8B=E5=8F=AF?= =?UTF-8?q?=E7=94=A8=E6=9C=88=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 1 + src/widget/date/calendar/picker.date.js | 1 + 2 files changed, 2 insertions(+) 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();