main.js 936 Bytes

import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import 'normalize.css/normalize.css' // a modern alternative to CSS resets
import './directive/dragDialog';
import Element from 'element-ui'
import './styles/element-variables.scss'
import '@/styles/index.scss' // global css

import onlyNumber from '@/directive/el-input'; //添加此行=>自定义全局指令

import lbTable from './components/lb-table/index';

import store from './store'
import router from './router'
import _ from 'lodash'

import './icons' // icon
import './permission' // permission control
import * as filters from './filters' // global filters
Vue.use(lbTable);

Vue.use(onlyNumber);
Vue.use(Element, {
    size: 'small' // set element-ui default size
})
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
})
Vue.config.productionTip = false
new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
})