mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 19:47:56 +08:00
Merge pull request #11051 from kangzhanlei/fit-tablerow
fit: 解决表格行编辑的时候的弹窗,无法获取返回值的问题
This commit is contained in:
commit
c6d3fe121d
@ -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