Skip to content

Commit

Permalink
fix: 修复 fat-table column 变化没有触发 actions 渲染
Browse files Browse the repository at this point in the history
Change-Id: I4984e62f8affe11bea1621b06f79c5274d6dc542
  • Loading branch information
ivan-94 committed Oct 18, 2023
1 parent 700843f commit 0dc8b39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/fat-table/column.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const Column = declareComponent({
const row = scope.row;
const idx = scope.$index;

return <Cell row={row} index={idx} column={column} />;
return <Cell row={row} index={idx} column={props.column} />;
},
};
} else if (type === 'selection') {
Expand All @@ -189,7 +189,7 @@ export const Column = declareComponent({
// 操作
children = {
default: (scope: { row: any; $index: number }) => {
return <Actions row={scope.row} index={scope.$index} tableInstance={tableInstance} column={column} />;
return <Actions row={scope.row} index={scope.$index} tableInstance={tableInstance} column={props.column} />;
},
};
extraProps.headerAlign = column.labelAlign ?? configurable.fatTable?.actionsAlign ?? 'center';
Expand Down

0 comments on commit 0dc8b39

Please sign in to comment.