vue-cli3.0使用echarts

//min.js
import { createApp } from 'vue'
import router from './router'
import App from './App.vue'
import '../src/assets/js/models'
import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';
import * as echarts from 'echarts';
const app = createApp(App)

// 全局属性 globalProperties
app.config.globalProperties.$echarts = echarts

app.use(router)
app.use(ElementPlus)
app.mount('#app')


//在hom.vue中使用





你可能感兴趣的:(vue-cli3.0使用echarts)