警告:did you register the component correctly? For recursive components, make sure to provide the “name” option.
问题原因
没有在全局注册element-ui
解决方法
在main.js中引入:
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/zh-CN'
Vue.use(ElementUI, {locale})
重新编译,问题解决