Browse Source

fix(components/Form): incorrect warning message display

main
刘凯 1 year ago
parent
commit
176d2afd58
  1. 2
      src/components/Form/src/components/FormItem.vue

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