diff --git a/packages/common/business_components/src/ui/table/index.tsx b/packages/common/business_components/src/ui/table/index.tsx index 368abc5cc..ae93cd46f 100644 --- a/packages/common/business_components/src/ui/table/index.tsx +++ b/packages/common/business_components/src/ui/table/index.tsx @@ -17,6 +17,7 @@ type UiTableProps = { type UiHeadProps = { id: string; title: string; + align?: string; } export function UiTable({ tableData, headlist, pageSize, total, children, headName, cellClick, onPageChange, className = '' }: UiTableProps) { @@ -55,8 +56,16 @@ export function UiTable({ tableData, headlist, pageSize, total, children, headNa {tableData?.map((el: { [key: string]: any}, index) => ( {headlist?.map((head) => ( - // handleCellClick(index)} key={head.id + index}>{el[head.id]} - handleCellClick(index,head.id)} key={head.id + index}>{el[head.id]} + handleCellClick(index, head.id)} + key={head.id + index} + > + {el[head.id]} + ))} ))}