diff --git a/packages/amis/src/renderers/Table/TableRow.tsx b/packages/amis/src/renderers/Table/TableRow.tsx index fd6451f01..564ea7acf 100644 --- a/packages/amis/src/renderers/Table/TableRow.tsx +++ b/packages/amis/src/renderers/Table/TableRow.tsx @@ -91,7 +91,7 @@ export class TableRow extends React.Component { } if (itemAction) { - onAction && onAction(e, itemAction, item?.data); + onAction && onAction(e, itemAction, item?.locals); item.toggle(); } else { if (item.checkable && item.isCheckAvaiableOnClick) { @@ -102,7 +102,7 @@ export class TableRow extends React.Component { handleAction(e: React.UIEvent, action: Action, ctx: any) { const {onAction, item} = this.props; - onAction && onAction(e, action, ctx || item.data); + onAction && onAction(e, action, ctx || item.locals); } handleQuickChange(