diff --git a/src/components/Form/src/components/FormItem.vue b/src/components/Form/src/components/FormItem.vue index 77a0204..b2170a6 100644 --- a/src/components/Form/src/components/FormItem.vue +++ b/src/components/Form/src/components/FormItem.vue @@ -389,7 +389,7 @@ export default defineComponent({ return () => { const { colProps = {}, colSlot, renderColContent, component, slot } = props.schema if (!component || (!componentMap.has(component) && !slot)) { - console.warn(`[BasicForm]: Component "${component}" not found, please ensure it is registered. \n https://doc.vvbin.cn/components/form.html#%E8%87%AA%E8%A1%8C%E6%B7%BB%E5%8A%A0%E9%9C%80%E8%A6%81%E7%9A%84%E7%BB%84%E4%BB%B6%E7%B1%BB%E5%9E%8B`) + !slot && console.warn(`[BasicForm]: Component "${component}" not found, please ensure it is registered. \n https://doc.vvbin.cn/components/form.html#%E8%87%AA%E8%A1%8C%E6%B7%BB%E5%8A%A0%E9%9C%80%E8%A6%81%E7%9A%84%E7%BB%84%E4%BB%B6%E7%B1%BB%E5%9E%8B`) return null }