Skip to content

Commit

Permalink
fix: #1690
Browse files Browse the repository at this point in the history
  • Loading branch information
wugaoliang committed Apr 24, 2021
1 parent 8ba7f6f commit 00174ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- 新增 `SelectTree` disabled 属性,控制禁用状态[#1675](https://github.com/XiaoMi/hiui/issues/1675)
- 优化 `Table` expandedRender 函数接受 Promise,可以进行异步渲染[#1679](https://github.com/XiaoMi/hiui/issues/1679)
- 修复 `Tabs` 组件 onDelete、onAdd 等方法获取数据操作异常问题[#1676](https://github.com/XiaoMi/hiui/issues/1676)
- 修复 `DatePicker` maxDate 属性设置日期后,月份禁用错误 [#1690](https://github.com/XiaoMi/hiui/issues/1690)

## 3.5.0

Expand Down
2 changes: 1 addition & 1 deletion components/date-picker/hooks/useCalenderData.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const getYearOrMonthRows = ({ originDate, renderDate, type, view, range, localeD
const maxMoment = moment(max)
const maxYear = maxMoment.year()
const maxMonth = maxMoment.month()
col.type = _y < maxYear ? 'disabled' : col.type
col.type = _y > maxYear ? 'disabled' : col.type
col.type = _y === maxYear && _m > maxMonth ? 'disabled' : col.type
}
}
Expand Down

0 comments on commit 00174ca

Please sign in to comment.