From 79b50cc59c597c7094da1200ad770228d6a292ff Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Thu, 22 Aug 2019 17:00:41 +0800 Subject: [PATCH] [+] Import VCharts with Vue.use() --- src/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.ts b/src/main.ts index d3f059a..2f5c043 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,11 +1,18 @@ import Vue from 'vue'; import ElementUI from 'element-ui'; +const VCharts = require('v-charts'); import App from './components/app/app.vue'; Vue.config.productionTip = false; + +// Use Element UI Vue.use(ElementUI, {locale: 'en-us'}); +// Use VCharts +Vue.use(VCharts); + +// Init app new Vue({ render: (h) => h(App), }).$mount('#app');