ddd35090 by simon

1.element-ui 加默认主题

1 parent 04eb4382
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
44 "babel-plugin-component": "^1.1.1", 44 "babel-plugin-component": "^1.1.1",
45 "babel-plugin-import": "^1.13.0", 45 "babel-plugin-import": "^1.13.0",
46 "babel-polyfill": "^6.26.0", 46 "babel-polyfill": "^6.26.0",
47 "element-theme-chalk": "^2.13.0",
47 "eslint": "^5.16.0", 48 "eslint": "^5.16.0",
48 "eslint-plugin-vue": "^5.0.0", 49 "eslint-plugin-vue": "^5.0.0",
49 "node-sass": "^4.12.0", 50 "node-sass": "^4.12.0",
......
...@@ -4,6 +4,10 @@ import App from './App.vue'; ...@@ -4,6 +4,10 @@ import App from './App.vue';
4 import router from './router'; 4 import router from './router';
5 import store from './store/index'; 5 import store from './store/index';
6 6
7 import Element from 'element-ui'
8 import '@styles/element-variables.scss'
9 Vue.use(Element)
10
7 import api from '@/api/api' 11 import api from '@/api/api'
8 import { 12 import {
9 httpGet, 13 httpGet,
......
1 1 /* 改变主题色变量 */
2 $--color-primary: #f05a23; 2 $--color-primary: #f05a23;
3
4 /* 改变 icon 字体路径变量,必需 */
5 $--font-path: '~element-ui/lib/theme-chalk/fonts';
6
7 @import "~element-ui/packages/theme-chalk/src/index";
......