fix: FormItem won't render when a component is not provided

This commit is contained in:
likui628
2023-12-21 16:58:57 +08:00
parent 2db4cfbd33
commit 9e055ad273

View File

@@ -423,7 +423,7 @@
return () => {
const { colProps = {}, colSlot, renderColContent, component, slot } = props.schema;
if (!component || (!componentMap.has(component) && !slot)) {
if (!((component && componentMap.has(component)) || slot)) {
return null;
}