原文:使用el-dialog时,报错“Unknown custom element: did you register the component correctly?...make sure to provide the 'name' option”

初学vue时,曾遇到一个无语的问题,在用el dialog时一直显示没有导入,结果发现是因为没有把element ui引入到项目里。 需进行以下步骤: .执行: npm install element ui s .在main.js文件里加入以下代码: import ElementUI from element ui import element ui lib theme default inde ...

2019-08-12 09:50 0 4756 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM