fix: client e2e test (#6058)

This commit is contained in:
Katherine 2025-01-14 13:12:21 +08:00 committed by GitHub
parent 565e55559a
commit 6df9d66837
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,7 +88,15 @@ export const TableColumnDecorator = (props) => {
}, [uiSchema?.title]);
if (!designable || Designer.isNullComponent) {
return props.children;
return (
<CollectionFieldContext.Provider value={collectionField}>
<Designer fieldSchema={fieldSchema} uiSchema={uiSchema} collectionField={collectionField} />
<span role="button">
{fieldSchema?.required && <span className="ant-formily-item-asterisk">*</span>}
<span>{field?.title || compile(uiSchema?.title)}</span>
</span>
</CollectionFieldContext.Provider>
);
}
return (
<SortableItem