日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無先后,達(dá)者為師

網(wǎng)站首頁 編程語言 正文

Failed to execute ‘drawImage‘ on ‘CanvasRenderingContext2D‘: The image argument is a canvas element

作者:騎上我心愛的小摩托 更新時間: 2022-03-03 編程語言

在這里插入圖片描述
Echarts重繪報錯,原因在于繪制時,未正確獲取到畫布的寬高,可在容器內(nèi)寫入行內(nèi)樣式,即可解決

<template>
  <div class="g2-chart-container" style="height: 300px;">
    <div
      v-show="hasData"
      :id="id"
      class="g2-chart"
      style="height: 300px; width: 100%;"
    />
    <div v-show="!hasData" class="noData">
      暫無數(shù)據(jù)
    </div>
  </div>
</template>

原文鏈接:https://blog.csdn.net/cxwtsh123/article/details/123136053

欄目分類
最近更新