mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fit: 解决表格行编辑的时候的弹窗,无法获取返回值的问题
This commit is contained in:
parent
46a2dd0ad4
commit
7e8554acee
@ -132,7 +132,7 @@ export class TableRow extends React.PureComponent<
|
||||
@autobind
|
||||
handleAction(e: React.UIEvent<any>, action: Action, ctx: any) {
|
||||
const {onAction, item} = this.props;
|
||||
onAction && onAction(e, action, ctx || item.locals);
|
||||
return onAction && onAction(e, action, ctx || item.locals);
|
||||
}
|
||||
|
||||
@autobind
|
||||
|
@ -220,6 +220,7 @@ export type TableColumnWithType = SchemaObject & TableColumnObject;
|
||||
export type TableColumn = TableColumnWithType | TableColumnObject;
|
||||
|
||||
type AutoFillHeightObject = Record<'height' | 'maxHeight', number>;
|
||||
|
||||
/**
|
||||
* Table 表格渲染器。
|
||||
* 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/table
|
||||
@ -1025,7 +1026,7 @@ export default class Table extends React.Component<TableProps, object> {
|
||||
const {onAction} = this.props;
|
||||
|
||||
// todo
|
||||
onAction(e, action, ctx);
|
||||
return onAction(e, action, ctx);
|
||||
}
|
||||
|
||||
async handleCheck(item: IRow, value?: boolean, shift?: boolean) {
|
||||
@ -1375,6 +1376,7 @@ export default class Table extends React.Component<TableProps, object> {
|
||||
}
|
||||
|
||||
tableUnWatchResize?: () => void;
|
||||
|
||||
tableRef(ref: HTMLTableElement) {
|
||||
this.table = ref;
|
||||
isAlive(this.props.store) && this.props.store.setTable(ref);
|
||||
|
Loading…
Reference in New Issue
Block a user