fix: 修复flex布局组件warning

This commit is contained in:
zhangtao07 2024-05-08 10:52:07 +08:00
parent 9b5e4c4991
commit bcd1af71f5
2 changed files with 6 additions and 3 deletions

View File

@ -33,8 +33,12 @@ function LayoutItem({
}} }}
onClick={onSelect} onClick={onSelect}
> >
{items.map(val => ( {items.map((val, index) => (
<div className="ae-FlexLayout-itemColumn" style={{flex: val}}></div> <div
key={index}
className="ae-FlexLayout-itemColumn"
style={{flex: val}}
/>
))} ))}
</div> </div>
</TooltipWrapper> </TooltipWrapper>

View File

@ -689,7 +689,6 @@ export class Table extends React.PureComponent<TableProps, TableState> {
testIdBuilder testIdBuilder
} = this.props; } = this.props;
console.log(testIdBuilder);
const rowSelectionKeyField = this.getRowSelectionKeyField(); const rowSelectionKeyField = this.getRowSelectionKeyField();
const dataList = const dataList =
rowSelection && rowSelection.getCheckboxProps rowSelection && rowSelection.getCheckboxProps