mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 修复table2自定义展开内组件无法获取当前行数据问题
This commit is contained in:
parent
17ae1a11c9
commit
65a24486ef
@ -1304,7 +1304,7 @@ export default class Table2 extends React.Component<Table2Props, object> {
|
||||
{
|
||||
data: {
|
||||
...this.props.data,
|
||||
record,
|
||||
...record,
|
||||
rowIndex
|
||||
}
|
||||
}
|
||||
@ -1580,7 +1580,11 @@ export default class Table2 extends React.Component<Table2Props, object> {
|
||||
dispatchEvent
|
||||
} = this.props;
|
||||
actions = Array.isArray(actions) ? actions.concat() : [];
|
||||
const config = isObject(columnsTogglable) ? columnsTogglable : {};
|
||||
const config = isObject(columnsTogglable)
|
||||
? columnsTogglable
|
||||
: {
|
||||
align: 'left'
|
||||
};
|
||||
|
||||
// 现在默认从crud里传进来的columnsTogglable是boolean类型
|
||||
// table单独配置的是SchemaNode类型
|
||||
|
Loading…
Reference in New Issue
Block a user