fix: 修复itemAction 不支持 actioType next 的问题

This commit is contained in:
liaoxuezhi 2023-05-04 16:09:51 +08:00
parent 82f2ea2568
commit 30456dba67

View File

@ -91,7 +91,7 @@ export class TableRow extends React.Component<TableRowProps> {
}
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<TableRowProps> {
handleAction(e: React.UIEvent<any>, action: Action, ctx: any) {
const {onAction, item} = this.props;
onAction && onAction(e, action, ctx || item.data);
onAction && onAction(e, action, ctx || item.locals);
}
handleQuickChange(