<template>
<div>
<div id="chart" :style="echartStyle"></div>
</div>
</template>
<script>
export default {
props: {
echartStyle: {
type: Object,
default() {
return {}
}},
titleText: {
type: String,
default: ''
},
tooltipFormatter: {
type: String,
default: ''
},
opinion: {
type: Array,
default() {
return []
}
},
seriesName: {
type: String,
default: ''
},
opinionData: {
type: Array,
default() {
return []
}
}
},
data(){
return{
}
},
mounted(){
this.getChange();
},
watch:{
titleText:function(newValue,oldValue){
this.getChange();
},
VUE中画饼状图
最新推荐文章于 2024-06-22 09:48:56 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)