Skip to content

Commit

Permalink
Merge pull request #1992 from XiaoMi/feat/#1991
Browse files Browse the repository at this point in the history
feat: close #1991
  • Loading branch information
solarjoker committed Nov 10, 2021
2 parents 6608fe4 + d51aab2 commit e74b06c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
- 新增 `Input` 组件的支持 placeholder 受控动态更新 [#1982](https://github.com/XiaoMi/hiui/issues/1982)
- 修复 `Select` 组件高亮词搜索存在正则注入 [#1972](https://github.com/XiaoMi/hiui/issues/1972)
- 修复 `Table` 组件 resizable 调节列宽功能失效 [#1970](https://github.com/XiaoMi/hiui/issues/1970)
- 修复 `Input` 组件的 placeholder 没法动态更新 [#1970](https://github.com/XiaoMi/hiui/issues/1982)
- 优化 `Dropdown` 组件 props 中的 data 消除副作用 [#1991](https://github.com/XiaoMi/hiui/issues/1991)
- 修复 `TimePicker` 组件使用 minusStep 当点击 clear 后会再次自动回显值 [#1986](https://github.com/XiaoMi/hiui/issues/1986)

# 3.8.0
Expand Down
4 changes: 3 additions & 1 deletion components/dropdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export default CompatedDropdown

function convertData(data, prefix = '', suffix = '') {
const recur = (data) => {
return data.map((item) => {
return data.map((row) => {
const item = { ...row }

if (item.children) {
item.children = recur(item.children)
}
Expand Down

0 comments on commit e74b06c

Please sign in to comment.