From 05d754bb09ba4aeddd60320d33d583d388434c2f Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期一, 20 十二月 2021 15:38:45 +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