Browse Source

引入echarts组件

aaa 3 years ago
parent
commit
3290d51862
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/components/echarts/EchartsBar.vue

+ 2 - 0
src/components/echarts/EchartsBar.vue

@@ -12,6 +12,8 @@ require('echarts/lib/chart/bar');
 require('echarts/lib/component/tooltip');
 require('echarts/lib/component/tooltip');
 require('echarts/lib/component/title');
 require('echarts/lib/component/title');
 import { LegendComponent } from 'echarts/components';
 import { LegendComponent } from 'echarts/components';
+import { GridComponent } from 'echarts/components';
+echarts.use([GridComponent]);
 echarts.use([LegendComponent]);
 echarts.use([LegendComponent]);
 export default {
 export default {
   props: {
   props: {