import{r,c as t,h as i}from"./p-78e3ebb9.js";const o="taro-cover-image-core{overflow:hidden;width:320px;height:240px}";const s=class{constructor(i){r(this,i);this.onLoad=t(this,"load",7);this.onError=t(this,"error",7);this.src=undefined;this.nativeProps={}}imageOnLoad(){const{width:r,height:t}=this.imgRef;this.onLoad.emit({width:r,height:t})}imageOnError(r){this.onError.emit(r)}render(){const{src:r,imageOnLoad:t,imageOnError:o,nativeProps:s}=this;return i("img",Object.assign({ref:r=>this.imgRef=r,src:r,onLoad:t.bind(this),onError:o.bind(this)},s))}};s.style=o;export{s as taro_cover_image_core};
//# sourceMappingURL=p-2357313b.entry.js.map