From 344558a1fe61622149af07843db75422dff53406 Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期三, 03 十一月 2021 17:34:59 +0800 Subject: [PATCH] 朔黄首页 --- src/pages/shuohuangMonitorAnalyze/components/charts/bar.vue | 29 +++++++++++++---------------- 1 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/charts/bar.vue b/src/pages/shuohuangMonitorAnalyze/components/charts/bar.vue index f8062cb..b06116a 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/charts/bar.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/charts/bar.vue @@ -1,32 +1,29 @@ <template> - <div ref="barChart" style="width: 100%; height: 100%;"></div> + <div ref="barChart" style="width: 100%; height: 100%" class="Bar"></div> </template> <script> export default { - data () { - return { - - } + data() { + return {}; }, props: { - options:{ + options: { type: Object, - } + }, }, - mounted(){ + mounted() { this.initBar(); }, methods: { - initBar(){ - this.$nextTick(()=>{ - let dom = this.$echarts.init(this.$refs['barChart']); + initBar() { + this.$nextTick(() => { + let dom = this.$echarts.init(this.$refs["barChart"]); dom.setOption(this.options); - }) - - } - } -} + }); + }, + }, +}; </script> <style > -- Gitblit v1.8.0