refactor:update element

pull/285/head
Pan 7 years ago
parent 3b89cde53a
commit fe31c88193

@ -18,7 +18,7 @@
"codemirror": "5.31.0", "codemirror": "5.31.0",
"dropzone": "5.2.0", "dropzone": "5.2.0",
"echarts": "3.7.2", "echarts": "3.7.2",
"element-ui": "1.4.8", "element-ui": "2.0.1",
"file-saver": "1.3.3", "file-saver": "1.3.3",
"font-awesome": "4.7.0", "font-awesome": "4.7.0",
"js-cookie": "2.2.0", "js-cookie": "2.2.0",

@ -1,6 +1,6 @@
import Vue from 'vue' import Vue from 'vue'
import ElementUI from 'element-ui' import Element from 'element-ui'
import 'element-ui/lib/theme-default/index.css' import 'element-ui/lib/theme-chalk/index.css'
import App from './App' import App from './App'
import router from './router' import router from './router'
import store from './store' import store from './store'
@ -10,7 +10,7 @@ import './errorLog'// error log
import './permission' // 权限 import './permission' // 权限
import './mock' // 该项目所有请求使用mockjs模拟 import './mock' // 该项目所有请求使用mockjs模拟
Vue.use(ElementUI) Vue.use(Element)
// register global utility filters. // register global utility filters.
Object.keys(filters).forEach(key => { Object.keys(filters).forEach(key => {

@ -1,10 +1,11 @@
<template> <template>
<el-menu mode="vertical" theme="dark" unique-opened :default-active="$route.path" :collapse="isCollapse"> <el-menu mode="vertical" unique-opened :default-active="$route.path" :collapse="isCollapse" background-color="#545c64" text-color="#fff" active-text-color="#ffd04b">
<sidebar-item :routes='permission_routers'></sidebar-item> <sidebar-item :routes='permission_routers'></sidebar-item>
</el-menu> </el-menu>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import SidebarItem from './SidebarItem' import SidebarItem from './SidebarItem'

@ -45,7 +45,7 @@
<script> <script>
import { toggleClass } from '@/utils' import { toggleClass } from '@/utils'
import '@/assets/custom-theme/index.css' // element-ui css // import '@/assets/custom-theme/index.css' // element-ui css
export default { export default {
name: 'theme', name: 'theme',

Loading…
Cancel
Save