fix: 修复table组件自动生成筛选条件渲染错误问题 (#5766)

Co-authored-by: duqingyu <duqingyu@zj.tech>
This commit is contained in:
杜庆愉 2023-05-05 11:25:33 +08:00 committed by GitHub
parent a2373fce42
commit 6e85f618f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,11 @@ export type GroupSubControl = SchemaObject & {
* group
*/
columnRatio?: number | 'auto';
/**
*
*/
name?: string;
};
/**
@ -115,7 +120,7 @@ export class ControlGroupRenderer extends React.Component<InputGroupProps> {
}
return this.renderControl(control, index, {
key: index
key: `${control.name ?? ''}-${index}`
});
})}
</div>
@ -180,7 +185,7 @@ export class ControlGroupRenderer extends React.Component<InputGroupProps> {
['formula', 'hidden'].includes((control as any).type))
) {
return this.renderControl(control, index, {
key: index,
key: `${control.name ?? ''}-${index}`,
className: cx(control.className, control.columnClassName)
});
}
@ -199,6 +204,7 @@ export class ControlGroupRenderer extends React.Component<InputGroupProps> {
)}
>
{this.renderControl(control, index, {
key: `${control.name ?? ''}-${index}`,
formHorizontal: horizontalDeeper,
formMode: controlMode
})}