代码重构
This commit is contained in:
@@ -5,10 +5,10 @@ import Cookies from 'js-cookie'
|
||||
import 'normalize.css/normalize.css'
|
||||
|
||||
import Element from 'element-ui'
|
||||
//列自适应宽度:https://github.com/legendJaden/AFTableColumn
|
||||
// 列自适应宽度:https://github.com/legendJaden/AFTableColumn
|
||||
import AFTableColumn from 'af-table-column'
|
||||
|
||||
//可编辑grid插件
|
||||
// 可编辑grid插件
|
||||
import 'xe-utils'
|
||||
import VXETable from 'vxe-table'
|
||||
import 'vxe-table/lib/style.css'
|
||||
@@ -22,7 +22,6 @@ import 'mavon-editor/dist/css/index.css'
|
||||
// 数据字典
|
||||
import dict from './components/Dict'
|
||||
|
||||
|
||||
import scroll from 'vue-seamless-scroll'
|
||||
Vue.use(scroll)
|
||||
|
||||
@@ -48,17 +47,26 @@ import 'echarts-gl'
|
||||
|
||||
import 'jquery'
|
||||
|
||||
// 全局引入LogicFlow
|
||||
import LogicFlow from '@logicflow/core'
|
||||
import { Menu } from '@logicflow/extension'
|
||||
import '@logicflow/extension/lib/style/index.css'
|
||||
LogicFlow.use(Menu)
|
||||
|
||||
Vue.use(AFTableColumn)
|
||||
Vue.use(VXETable)
|
||||
Vue.prototype.$XModal = VXETable.modal
|
||||
|
||||
|
||||
Vue.use(VueHighlightJS)
|
||||
Vue.use(mavonEditor)
|
||||
Vue.use(permission)
|
||||
Vue.use(dict)
|
||||
|
||||
// 全局设置控件样式https://codeantenna.com/a/0IN5FMJk5h
|
||||
Element.Table.props.border = { type: Boolean, default: true }
|
||||
Element.TableColumn.props.align = { type: String, default: 'center' }
|
||||
Vue.use(Element, {
|
||||
size: Cookies.get('size') || 'small' // set element-ui default size
|
||||
size: Cookies.get('size') || 'mini' // set element-ui default size
|
||||
})
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
Reference in New Issue
Block a user