fix: 修复flex布局组件warning

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

View File

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

View File

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