vue-piczoom icon indicating copy to clipboard operation
vue-piczoom copied to clipboard

第一次加载时canvas高度为0

Open augustVino opened this issue 6 years ago • 2 comments

第一次加载、或Ctrl+F5强制刷新时,由于图片未加载完毕,故获取的imgBox的高度为0,导致canvas的高度也为0、放大镜失效。建议:this.imgbox=box此操作应写在img.onload里边。

augustVino avatar Apr 08 '18 03:04 augustVino

怎么还不解决

hql7 avatar Oct 17 '18 03:10 hql7

我也遇到了这个问题,我的做法是在 imgBox 加上 v-if

LFNLFN avatar Oct 22 '21 01:10 LFNLFN