src/components/echart24.vue
@@ -10,7 +10,7 @@ components: {}, data() { //这里存放数据 return { myChart }; return { myChart: null }; }, mounted() { this.lineChart(); @@ -24,7 +24,9 @@ let option = { title: { text: '1-12月数据更新量', top: 15, textStyle: { color: '#fff', }, }, @@ -109,17 +111,18 @@ }); }, }, created() {}, created() { }, }; </script> <style lang="less" scoped> //@import url(); 引入公共css类 .echart24_box { padding: 20px; // background: rgba(0, 0, 0, 0.6); } #echart24 { width: 100%; height: 100%; } #echart24 { width: calc(100% - 40px); height: calc(100% - 40px); } </style>