Commit 14fb21d0b7b9ac69c7b3c463de6d709bd5713d14
1 parent
dce3fb0f
fix(table): fix expand style
修复启用expandRowByClick展开图标样式问题 fixed: #969
Showing
2 changed files
with
4 additions
and
2 deletions
CHANGELOG.zh_CN.md
@@ -4,7 +4,9 @@ | @@ -4,7 +4,9 @@ | ||
4 | - **BasicTable** 修复可编辑单元格不支持`ellipsis`配置的问题 | 4 | - **BasicTable** 修复可编辑单元格不支持`ellipsis`配置的问题 |
5 | - **ImgRotateDragVerify** 修复组件`resume`方法无法调用的问题 | 5 | - **ImgRotateDragVerify** 修复组件`resume`方法无法调用的问题 |
6 | - **TableAction** 修复 stopButtonPropagation 属性某些情况下不起作用的问题 | 6 | - **TableAction** 修复 stopButtonPropagation 属性某些情况下不起作用的问题 |
7 | -- **BasicTable** 修复全屏模式下看不到子组件弹出层(popconfirm 以及 select、treeSelect 等编辑组件)的问题 | 7 | +- **BasicTable** |
8 | + - 修复全屏模式下看不到子组件弹出层(popconfirm 以及 select、treeSelect 等编辑组件)的问题 | ||
9 | + - 修复启用`expandRowByClick`时,点击不可展开的行可能会导致样式错误的问题 | ||
8 | - **Dark Theme** 黑暗主题下的配色问题修正 | 10 | - **Dark Theme** 黑暗主题下的配色问题修正 |
9 | - 修复`Tree`组件被选中节点的背景颜色 | 11 | - 修复`Tree`组件被选中节点的背景颜色 |
10 | - 修复`Alert`组件的颜色配置 | 12 | - 修复`Alert`组件的颜色配置 |
src/components/Table/src/components/ExpandIcon.tsx
@@ -3,7 +3,7 @@ import { BasicArrow } from '/@/components/Basic'; | @@ -3,7 +3,7 @@ import { BasicArrow } from '/@/components/Basic'; | ||
3 | export default () => { | 3 | export default () => { |
4 | return (props: Recordable) => { | 4 | return (props: Recordable) => { |
5 | if (!props.expandable) { | 5 | if (!props.expandable) { |
6 | - if (props.expanded) { | 6 | + if (props.needIndentSpaced) { |
7 | return <span class="ant-table-row-expand-icon ant-table-row-spaced" />; | 7 | return <span class="ant-table-row-expand-icon ant-table-row-spaced" />; |
8 | } else { | 8 | } else { |
9 | return <span />; | 9 | return <span />; |