import{d as a,a2 as e,o as t,h as s,w as r,a as i,W as l,A as d,O as o,z as c}from"./index-Cg3FU-dV.js";import{d as u}from"./default-avatar.BAKNUlXW.js";/* empty css                                                              */import{_ as n}from"./_plugin-vue_export-helper.BCo6x5W8.js";const p=n(a({__name:"index",props:{src:{default:"/static/image/default-avatar.png"},radius:{default:12},autoSize:{type:Boolean,default:!0},width:{default:90},height:{default:90}},emits:["change"],setup(a,{emit:n}){const p=a,{src:m,radius:_,autoSize:f,width:g,height:h}=e(p),v=n,x=()=>{v("change")},y=()=>{m.value=u};return(a,e)=>{const u=o,n=c;return t(),s(n,{class:d(i(f)?"avatar":"")},{default:r((()=>[i(f)?(t(),s(u,{key:0,style:l({borderRadius:i(_)+"rpx"}),class:"avatar-image",onError:y,onClick:x,src:i(m)?i(m):"/static/image/default-avatar.png",mode:"aspectFill"},null,8,["style","src"])):(t(),s(u,{key:1,style:l({borderRadius:i(_)+"rpx",width:i(g)+"rpx",height:i(h)+"rpx"}),class:"avatar-image",onError:y,onClick:x,src:i(m)?i(m):"/static/image/default-avatar.png",mode:"aspectFill"},null,8,["style","src"]))])),_:1},8,["class"])}}}),[["__scopeId","data-v-1c9fee87"]]);export{p as a};
