vue引入element-ui组件及其报错
element
A Vue.js 2.0 UI Toolkit for Web
项目地址:https://gitcode.com/gh_mirrors/eleme/element
·
1.安装依赖
npm install element-ui --save
2.引入element-ui
在main.js中引入下面代码
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
报错问题:
问题1.
Errors:
25 http://eslint.org/docs/rules/no-tabs
7 http://eslint.org/docs/rules/indent
7 http://eslint.org/docs/rules/semi
2 http://eslint.org/docs/rules/no-undef
1 http://eslint.org/docs/rules/eol-last
1 http://eslint.org/docs/rules/no-new
1 http://eslint.org/docs/rules/no-multiple-empty-lines
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
解决办法:

问题2、 css的文件路径报错
解决方法:
因为原版的css文件是theme-default,改版后就变为theme-chalk,在安装目录下将文件名改为theme-chalk即可,文件路径:node_modules/element-ui/lib/theme-chalk/index.css
A Vue.js 2.0 UI Toolkit for Web
最近提交(Master分支:4 个月前 )
c345bb45
1 年前
a07f3a59
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update table.md
* Update transition.md
* Update popover.md 1 年前
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)