12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import Vue from 'vue'
- import 'normalize.css/normalize.css' // A modern alternative to CSS resets
- import ElementUI from 'element-ui'
- import 'element-ui/lib/theme-chalk/index.css'
- import '@/styles/index.scss' // global css
- import App from './App'
- import store from './store'
- import router from './router'
- import '@/icons' // icon
- import '@/permission' // permission control
- import '@/config/checkPermission' //按钮权限 全局自定义指令v-is
- // import lodash
- import _ from 'lodash'
- Vue.prototype._ = _
- // import echarts
- import * as echarts from 'echarts'
- import Vue2OrgTree from 'vue2-org-tree'
- import 'vue2-org-tree/dist/style.css'
- Vue.use(Vue2OrgTree)
- Vue.use(ElementUI)
- Vue.directive('loadmore', {
- bind(el, binding) {
- if (!binding.value) {
- return
- }
- const selectWrap = el.querySelector('.el-table__body-wrapper')
- selectWrap.addEventListener('scroll', function () {
- const sign = 0
- const scrollDistance = this.scrollHeight - this.scrollTop - this.clientHeight
- if (scrollDistance <= sign) {
- binding.value()
- }
- })
- }
- })
- Vue.prototype.$echarts = echarts
- Vue.config.productionTip = false
- new Vue({
- router,
- store,
- render: (h) => h(App)
- }).$mount('#app')
|