There is a chart instance already initialized on the do
当封装为组件使用的时候,类名是一样的,同一个页面多次出现相同类名,只能显示一个。
当为id不能显示,因为id不能重复
var progress = echarts.init(document.querySelector(".progress"));progress.setOption(this.option);
<div ref="refDom" class="line"></div>let refDom = ref(null);nextTick(() => {watchEffect(() => {if (props.tab === "amount") {fetchTxData(panel.amountInfo);} else {fetchTxData(panel.transInfo);}});});
