mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 13:28:49 +08:00
fix: 修复table组件自动生成筛选条件渲染错误问题 (#5766)
Co-authored-by: duqingyu <duqingyu@zj.tech>
This commit is contained in:
parent
a2373fce42
commit
6e85f618f1
@ -20,6 +20,11 @@ export type GroupSubControl = SchemaObject & {
|
|||||||
* 宽度占用比率。在某些容器里面有用比如 group
|
* 宽度占用比率。在某些容器里面有用比如 group
|
||||||
*/
|
*/
|
||||||
columnRatio?: number | 'auto';
|
columnRatio?: number | 'auto';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列名称
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -115,7 +120,7 @@ export class ControlGroupRenderer extends React.Component<InputGroupProps> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return this.renderControl(control, index, {
|
return this.renderControl(control, index, {
|
||||||
key: index
|
key: `${control.name ?? ''}-${index}`
|
||||||
});
|
});
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
@ -180,7 +185,7 @@ export class ControlGroupRenderer extends React.Component<InputGroupProps> {
|
|||||||
['formula', 'hidden'].includes((control as any).type))
|
['formula', 'hidden'].includes((control as any).type))
|
||||||
) {
|
) {
|
||||||
return this.renderControl(control, index, {
|
return this.renderControl(control, index, {
|
||||||
key: index,
|
key: `${control.name ?? ''}-${index}`,
|
||||||
className: cx(control.className, control.columnClassName)
|
className: cx(control.className, control.columnClassName)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -199,6 +204,7 @@ export class ControlGroupRenderer extends React.Component<InputGroupProps> {
|
|||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{this.renderControl(control, index, {
|
{this.renderControl(control, index, {
|
||||||
|
key: `${control.name ?? ''}-${index}`,
|
||||||
formHorizontal: horizontalDeeper,
|
formHorizontal: horizontalDeeper,
|
||||||
formMode: controlMode
|
formMode: controlMode
|
||||||
})}
|
})}
|
||||||
|
Loading…
Reference in New Issue
Block a user