场景:在vue项目中用element-ui开发项目时出现这种情况,报错:[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.
页面显示不出来,如下:
原因:是因为我们没有注册组件导致的
解决办法:
在入口文件中注册即可,一般是main.js
import {
Radio
}