出现该问题是因为你的elementUI忘记注册的原因
解决办法:在vue的入口文件main.js中加入一下代码:
import ElementUI from 'element-ui' //element-ui的全部组件
import 'element-ui/lib/theme-chalk/index.css'//element-ui的css
Vue.use(ElementUI) //使用elementUI
另外:ElementUI 的使用参考另一篇文章:https://www.cnblogs.com/shenjianping/p/11236952.html