TX011
<Image src> 缺少 DOM
發生原因
<Image src> 透過 <img> 和 canvas 解碼圖片。目前的環境沒有 document(終端機、伺服器、測試),因此無法載入該網址。
修正方式
自行解碼圖片並傳入 RGBA 像素:
<Image pixels={{ width: 64, height: 64, data: rgba }} width={32} />TX011
<Image src> 透過 <img> 和 canvas 解碼圖片。目前的環境沒有 document(終端機、伺服器、測試),因此無法載入該網址。
自行解碼圖片並傳入 RGBA 像素:
<Image pixels={{ width: 64, height: 64, data: rgba }} width={32} />