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
1 changed files with 1 additions and 1 deletions

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;
}