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
GitHub 加速计划 / eleme / element
54.06 K
14.63 K
下载
A Vue.js 2.0 UI Toolkit for Web
最近提交(Master分支:2 个月前 )
c345bb45
7 个月前
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 7 个月前
更多推荐
已为社区贡献1条内容
所有评论(0)