"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../utils/env.js"),r=e.defineComponent({__name:"index",props:{url:{default:"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png"},size:{default:"36px"},borderRadius:{default:"5px"},useSkeletonAnimation:{type:Boolean,default:!1}},emits:["onLoad","onError"],setup(r,{emit:o}){const t=e.ref("https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png"),u=o,s=r,{size:a,url:f,borderRadius:i,useSkeletonAnimation:d}=e.toRefs(s);let c=0;const p=e.ref(!1),l=e.ref(!1);function m(e){p.value=!0,u("onLoad",e)}function v(e){c+=1,c>3||(n.isUniFrameWork?l.value=!0:e.currentTarget.src=t.value,u("onError",e))}return(r,o)=>e.e({a:e.unref(n.isUniFrameWork)},e.unref(n.isUniFrameWork)?e.e({b:!e.unref(l)},e.unref(l)?{f:e.unref(t),g:e.o$1(m),h:e.o$1(v)}:{c:e.unref(f)||e.unref(t),d:e.o$1(m),e:e.o$1(v)}):{i:e.unref(f)||e.unref(t),j:e.o$1(m),k:e.o$1(v)},{l:e.unref(d)&&!e.unref(p)},e.unref(d)&&!e.unref(p)?{m:e.unref(p)?1:"",n:e.unref(d)?1:""}:{},{o:e.unref(a),p:e.unref(a),q:e.unref(i)})}}),o=e._export_sfc(r,[["__scopeId","data-v-35b53489"]]);wx.createComponent(o);
