Unknown custom element: <el-XXX> - did you register the component correctly? For recursive components, make sure to provide the "name"
在使用vue调用element组件的时候报错
我这出现这个问题的原因是没有导入element模块
步骤:1.在运行终端输入 npm install --save element-ui 命令
2.在main.js中添加代码 import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; Vue.use(ElementUI);
这样 就可以在所有的页面使用该组件了