35bbb8a2 by 任超

style:地图

1 parent a3611f9c
<template><div :id="id" :class="className" :style="{ height: height, width: width }" /></template>
<template>
<div :id="id" :class="className" :style="{ height: height, width: width }" />
</template>
<script>
import tdTheme from "./theme.json"; // 引入默认主题
import { mapGetters } from "vuex";
export default {
name: "echart",
props: {
......@@ -42,12 +45,23 @@ export default {
}
});
},
deep: true,
deep: true
},
},
computed: {
...mapGetters(["dicData"]),
logoName () {
return (
this.dicData["sysCode"] &&
this.dicData["sysCode"].filter((item) => item.DCODE == "areaMap")
);
},
},
mounted () {
this.$echarts.registerTheme("tdTheme", tdTheme); // 覆盖默认主题
this.initChart();
this.$nextTick(() => {
this.initChart();
})
},
beforeDestroy () {
this.chart.dispose();
......