"use strict";const e=require("../../../uv-ui-tools/libs/mixin/mpMixin.js"),i=require("../../../uv-ui-tools/libs/mixin/mixin.js"),t=require("./props.js"),o=require("../../../../common/vendor.js"),s={name:"uv-empty",mixins:[e.mpMixin,i.mixin,t.props],data:()=>({icons:{car:"购物车为空",page:"页面不存在",search:"没有搜索结果",address:"没有收货地址","wifi-off":"没有WiFi",order:"订单为空",coupon:"没有优惠券",favor:"暂无收藏",permission:"无权限",history:"无历史记录",news:"无新闻列表",message:"消息列表为空",list:"列表为空",data:"数据为空",comment:"暂无评论"}}),computed:{emptyStyle(){const e={};return e.marginTop=this.$uv.addUnit(this.marginTop),this.$uv.deepMerge(e,this.$uv.addStyle(this.customStyle))},textStyle(){const e={};return e.color=this.textColor,e.fontSize=this.$uv.addUnit(this.textSize),e},isImg(){const e=this.icon.indexOf("data:")>-1&&this.icon.indexOf("base64")>-1;return-1!==this.icon.indexOf("/")||e}}};if(!Array){o.resolveComponent("uv-icon")()}Math;const n=o._export_sfc(s,[["render",function(e,i,t,s,n,r){return o.e({a:e.show},e.show?o.e({b:!r.isImg},r.isImg?{d:e.$uv.addUnit(e.width),e:e.$uv.addUnit(e.height),f:e.icon}:{c:o.p({name:"message"===e.mode?"chat":`empty-${e.mode}`,size:e.iconSize,color:e.iconColor,"margin-top":"14"})},{g:o.t(e.text?e.text:n.icons[e.mode]),h:o.s(r.textStyle),i:o.s(r.emptyStyle)}):{})}],["__scopeId","data-v-9f4b14de"]]);wx.createComponent(n);
