Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: #1759 #1763

Merged
merged 1 commit into from
Jun 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- 优化 `Grid` 组件接受原生属性 [#1609](https://github.com/XiaoMi/hiui/issues/1609)
- 优化 `Select` onChang 回调方法中,获取全部选项详细内容 [#1726](https://github.com/XiaoMi/hiui/issues/1726)
- 优化 `Form` 组件允许 FormItem 中的表单类组件设置 value [#1741](https://github.com/XiaoMi/hiui/issues/1741)
- 优化 `Table` 组件 showColHighlight 属性,修改内部触发逻辑 [#1759](https://github.com/XiaoMi/hiui/issues/1759)
- 修复 `Select` disabled 情况下,输入框仍能删除选项问题 [#1707](https://github.com/XiaoMi/hiui/issues/1707)
- 修复 `Table` 组件表头分组中使用 fixedToColumn 属性导致表头错乱 [#1732](https://github.com/XiaoMi/hiui/issues/1732)
- 修复 `Upload` 组件 onRemove 回调 api 导致外部引用闭包的问题 [#1739](https://github.com/XiaoMi/hiui/issues/1739)
Expand Down
4 changes: 2 additions & 2 deletions components/table/Cell.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const Cell = ({
highlightedColKeys.includes(column.dataKey) || highlightColumns.includes(column.dataKey),
[`${prefix}__col__hover--highlight`]: showColHighlight && hoverColIndex === column.dataKey
})}
onMouseEnter={(e) => setHoverColIndex(column.dataKey)}
onMouseLeave={(e) => setHoverColIndex(null)}
onMouseEnter={(e) => showColHighlight && setHoverColIndex(column.dataKey)}
onMouseLeave={(e) => showColHighlight && setHoverColIndex(null)}
>
{level > 1 && columnIndex === 0 && <Indent times={level - 1} />}
{columnIndex === 0 &&
Expand Down