import{ax as t,c as e,ar as a,au as s,e as r,f as o,w as i,g as l,x as n,v as d,A as u,M as c,j as p,a6 as m,B as y,y as f,p as g}from"./index-DVkgSHpn.js";import{_ as x}from"./el-layout._U-vZTft.js";const S=x({__name:"el-empty",props:{icon:{type:String,default:""},text:{type:String,default:""},textColor:{type:String,default:"#c0c4cc"},textSize:{type:[String,Number],default:14},iconColor:{type:String,default:"#c0c4cc"},iconSize:{type:[String,Number],default:90},mode:{type:String,default:"car"},width:{type:[String,Number],default:160},height:{type:[String,Number],default:160},show:{type:Boolean,default:!0},marginTop:{type:[String,Number],default:0},customStyle:{type:[String,Object],default:""}},emits:["fixed","unfixed"],setup(x,{emit:S}){const h=x,_=t({car:"购物车为空",search:"没有搜索结果",address:"没有收货地址",order:"订单为空",history:"无历史记录",message:"消息列表为空",data:"亲，暂无相关数据",page:"您查看的页面不存在",comment:"暂无评论"}),b=e((()=>{const t={};return t.marginTop=h.marginTop+"px",a(s(h.customStyle),t)})),w=e((()=>{const t={};return t.color=h.textColor,t.fontSize=h.textSize+"px",t}));e((()=>h.icon.indexOf("/")>=0));return(t,e)=>{const a=y,s=f,S=g;return x.show?(r(),o(S,{key:0,class:"el-empty",style:n([b.value])},{default:i((()=>{return[l(a,{style:n({width:x.width+"px",height:x.height+"px"}),src:(e=x.mode,m.getDomain()+"/static/mobile/empty/"+e+".png"),mode:"widthFix"},null,8,["style","src"]),l(s,{class:"text",style:n([w.value])},{default:i((()=>[d(u(x.text?x.text:_[x.mode]),1)])),_:1},8,["style"]),l(S,{class:"wrap"},{default:i((()=>[c(t.$slots,"default",{},void 0,!0)])),_:3})];var e})),_:3},8,["style"])):p("",!0)}}},[["__scopeId","data-v-7ab97ead"]]);export{S as _};
//# sourceMappingURL=el-empty.CMLN1lgh.js.map
