Vue3 中 问题记录

230 阅读1分钟

vue问题记录

Component is missing template or render function 警告,导致二次封装的dialog无法弹出

原因1: 组件内缺少template标签 或 render函数

原因2: 自定义组件的名称,和ref模板引用的名称一样(自己遇到的)

//这样会出警告 
<SelfComponent ref="SelfComponent">
</SelfComponent>