mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:08:55 +08:00
fix: 修复itemAction 不支持 actioType next 的问题
This commit is contained in:
parent
82f2ea2568
commit
30456dba67
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user