import Vue from 'vue'; import App from './App.vue'; import router from './router'; import store from './store'; import Particles from 'vue-particles'; import Element from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; import '@/theme/index.scss'; import { i18n } from '@/i18n/index.js'; import { globalComponentSize } from '@/utils/componentSize.js'; import CommonTables from '@/components/CommonTables' import CommonHead from '@/components/CommonHead' import CommonTablesImg from '@/components/CommonTablesImg' import Pagination from '@/components/pagination/index.vue'; // 分页器 import { formatDate } from './com'; // import { download } from '@/utils/request' import VueCropper from 'vue-cropper' Vue.use(VueCropper) //方便我们直接用 Vue.use(Particles); Vue.use(Element, { i18n: (key, value) => i18n.t(key, value), size: globalComponentSize }); Vue.config.productionTip = false; Vue.prototype.bus = new Vue(); Vue.prototype.formatDate = formatDate; // Vue.prototype.download = download // 注册全局组件 Vue.component(CommonTables.name,CommonTables) Vue.component(CommonHead.name,CommonHead) Vue.component('CommonTablesImg',CommonTablesImg) Vue.component('Pagination', Pagination) new Vue({ router, store, i18n, render: (h) => h(App), }).$mount('#app');