[+] Import VCharts with Vue.use()
This commit is contained in:
@@ -1,11 +1,18 @@
|
|||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import ElementUI from 'element-ui';
|
import ElementUI from 'element-ui';
|
||||||
|
const VCharts = require('v-charts');
|
||||||
|
|
||||||
import App from './components/app/app.vue';
|
import App from './components/app/app.vue';
|
||||||
|
|
||||||
Vue.config.productionTip = false;
|
Vue.config.productionTip = false;
|
||||||
|
|
||||||
|
// Use Element UI
|
||||||
Vue.use(ElementUI, {locale: 'en-us'});
|
Vue.use(ElementUI, {locale: 'en-us'});
|
||||||
|
|
||||||
|
// Use VCharts
|
||||||
|
Vue.use(VCharts);
|
||||||
|
|
||||||
|
// Init app
|
||||||
new Vue({
|
new Vue({
|
||||||
render: (h) => h(App),
|
render: (h) => h(App),
|
||||||
}).$mount('#app');
|
}).$mount('#app');
|
||||||
|
|||||||
Reference in New Issue
Block a user