import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import http from './plugins/http';
import ElementUI from 'element-ui';
import './styles/element/index.css';
import common from './mixins/common';
import phone from './mixins/phone';
ElementUI.Dialog.props.closeOnClickModal.default = false;
import SingleUpload from '@/components/SingleUpload';
import CropUpload from '@/components/CropUpload';
import './styles/font.less';
import './styles/app.less';
import eventBus from './eventBus';
import VueClipboard from 'vue-clipboard2';

Vue.prototype.$colors = {
    prim: '#FF7F1F',
    red: '#F42202'
};
Vue.use(ElementUI);
Vue.use(http);
Vue.mixin(common);
Vue.mixin(phone);
Vue.component('single-upload', SingleUpload);
Vue.component('crop-upload', CropUpload);
Vue.prototype.$EventBus = eventBus;
Vue.use(VueClipboard);

Vue.config.productionTip = false;

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app');
