init
This commit is contained in:
4
src/plugins/echarts.js
Normal file
4
src/plugins/echarts.js
Normal file
@@ -0,0 +1,4 @@
|
||||
import 'echarts'
|
||||
import VabChart from 'vue-echarts'
|
||||
|
||||
export default VabChart
|
||||
9
src/plugins/element.js
Normal file
9
src/plugins/element.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import Vue from 'vue'
|
||||
import ElementUI from 'element-ui'
|
||||
import 'element-ui/lib/theme-chalk/display.css'
|
||||
|
||||
import '@/styles/element-variables.scss'
|
||||
|
||||
Vue.use(ElementUI, {
|
||||
size: 'small',
|
||||
})
|
||||
15
src/plugins/index.js
Normal file
15
src/plugins/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/* 公共引入,勿随意修改,修改时需经过确认 */
|
||||
import Vue from 'vue'
|
||||
import './element'
|
||||
import './support'
|
||||
import '@/styles/vab.scss'
|
||||
import '@/remixIcon'
|
||||
import '@/colorfulIcon'
|
||||
import '@/config/permission'
|
||||
import '@/utils/errorLog'
|
||||
import './vabIcon'
|
||||
import VabPermissions from 'layouts/Permissions'
|
||||
import Vab from '@/utils/vab'
|
||||
|
||||
Vue.use(Vab)
|
||||
Vue.use(VabPermissions)
|
||||
18
src/plugins/support.js
Normal file
18
src/plugins/support.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { MessageBox } from 'element-ui'
|
||||
import { dependencies } from '../../package.json'
|
||||
|
||||
if (!!window.ActiveXObject || 'ActiveXObject' in window) {
|
||||
MessageBox({
|
||||
title: '温馨提示',
|
||||
message:
|
||||
'自2015年3月起,微软已宣布弃用IE,且不再对IE提供任何更新维护,请<a target="_blank" style="color:blue" href="https://www.microsoft.com/zh-cn/edge/">点击此处</a>访问微软官网更新浏览器,如果您使用的是双核浏览器,请您切换浏览器内核为极速模式',
|
||||
type: 'warning',
|
||||
showClose: false,
|
||||
showConfirmButton: false,
|
||||
closeOnClickModal: false,
|
||||
closeOnPressEscape: false,
|
||||
closeOnHashChange: false,
|
||||
dangerouslyUseHTMLString: true,
|
||||
})
|
||||
}
|
||||
if (!dependencies['vab-icon'] || !dependencies['layouts']) document.body.innerHTML = ''
|
||||
4
src/plugins/vabIcon.js
Normal file
4
src/plugins/vabIcon.js
Normal file
@@ -0,0 +1,4 @@
|
||||
import Vue from 'vue'
|
||||
import VabIcon from 'vab-icon'
|
||||
|
||||
Vue.component('VabIcon', VabIcon)
|
||||
Reference in New Issue
Block a user