// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import useEchartDemo from '../../components/ts-vue-echarts-demo/src/index.js'
import {useEchart, components} from '../../index.js'
// console.log('useEchartDemo', useEchartDemo)
// console.log('useEchartView', useEchartView, useEchart, components)
Vue.use(useEchartDemo)
Vue.use(useEchart)

Vue.config.productionTip = false

// 全局挂载引入发布-订阅模式
import PubSub from 'pubsub-js'
Vue.prototype.$PubSub = PubSub

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
