vue.js - 如何让 Vue Element.io 在本地工作?
问题描述
我正在尝试在本地下载 Vue Element.io 。如果我使用 CDN 中的示例,则一切正常。但是,如果我链接到放置在文件系统上的组件,我会收到错误消息。
<script src="js/index.js"></script>
代替:
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
我收到错误:
Unknown custom element: <el-button> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
我试图链接所有包和它的一部分(像按钮这样的单个元素)。你的错误是一样的。
解决方案
推荐阅读
- google-chrome-extension - 提交审核的 Chrome 扩展程序错误 - 如何停止?
- flask - 如何在烧瓶中访问视图功能之外的配置值
- node.js - 有没有办法在 sequelize 中创建关联
- javafx - 为什么我不能将 FXML 与控制器和控制器中的 fxid 一起使用?
- reactjs - 使用 NextJS 和 Material UI React 从 API 获取数据
- c++ - 从标准输入读取文件后读取用户输入
- javascript - NODE_TLS_REJECT_UNAUTHORIZED Heroku App 使整个应用程序不安全
- scala - 将流保存为按元素路径给定的镶木地板
- javascript - 加载页面后是否可以从 TikTok 重新加载嵌入内容?
- python - 我可以从一些 python 代码中获取变量列表及其类型而不运行它吗?