import{_ as e}from"./u-icon.8199a0c5.js";import{r as t,a as o,o as a,b as r,w as s,e as i,E as l,n,f as c,p}from"./index-cca0a918.js";import{_ as u}from"./_plugin-vue_export-helper.1b428a4d.js";const m=u({name:"u-empty",props:{src:{type:String,default:""},text:{type:String,default:""},color:{type:String,default:"#c0c4cc"},iconColor:{type:String,default:"#c0c4cc"},iconSize:{type:[String,Number],default:120},fontSize:{type:[String,Number],default:26},mode:{type:String,default:"data"},imgWidth:{type:[String,Number],default:120},imgHeight:{type:[String,Number],default:"auto"},show:{type:Boolean,default:!0},marginTop:{type:[String,Number],default:0},iconStyle:{type:Object,default:()=>({})}},data:()=>({icons:{car:"购物车为空",page:"页面不存在",search:"没有搜索结果",address:"没有收货地址",wifi:"没有WiFi",order:"订单为空",coupon:"没有优惠券",favor:"暂无收藏",permission:"无权限",history:"无历史记录",news:"无新闻列表",message:"消息列表为空",list:"列表为空",data:"数据为空"}})},[["render",function(u,m,d,f,y,g){const b=t(o("u-icon"),e),S=p;return d.show?(a(),r(S,{key:0,class:"u-empty",style:n({marginTop:d.marginTop+"rpx"})},{default:s((()=>[i(b,{name:d.src?d.src:"empty-"+d.mode,"custom-style":d.iconStyle,label:d.text?d.text:y.icons[d.mode],"label-pos":"bottom","label-color":d.color,"label-size":d.fontSize,size:d.iconSize,color:d.iconColor,"margin-top":"14"},null,8,["name","custom-style","label","label-color","label-size","size","color"]),i(S,{class:"u-slot-wrap"},{default:s((()=>[l(u.$slots,"bottom",{},void 0,!0)])),_:3})])),_:3},8,["style"])):c("v-if",!0)}],["__scopeId","data-v-6166d6bd"]]);export{m as _};
