test_lgq/niucloud/public/wap/assets/mescroll-empty.4fe1b9fd.js
2024-01-24 17:36:08 +08:00

2 lines
1.4 KiB
JavaScript

import{h as t,i,w as e,j as n,l as o,J as p,K as s,H as l,n as c,L as r,t as a}from"./index-849cf30e.js";import{m as u,G as m}from"./useMescroll.852ec5b5.js";import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";const f=y({props:{option:{type:Object,default:()=>({})}},computed:{icon(){if(null!=this.option.icon)return this.option.icon;{let t=u.getType();return this.option.i18n?this.option.i18n[t].icon:m.i18n[t].up.empty.icon||m.up.empty.icon}},tip(){if(null!=this.option.tip)return this.option.tip;{let t=u.getType();return this.option.i18n?this.option.i18n[t].tip:m.i18n[t].up.empty.tip||m.up.empty.tip}},btnText(){if(this.option.i18n){let t=u.getType();return this.option.i18n[t].btnText}return this.option.btnText}},methods:{emptyClick(){this.$emit("emptyclick")}}},[["render",function(u,m,y,f,d,h){const x=r,_=a;return t(),i(_,{class:l(["mescroll-empty",{"empty-fixed":y.option.fixed}]),style:c({"z-index":y.option.zIndex,top:y.option.top})},{default:e((()=>[n(_,null,{default:e((()=>[h.icon?(t(),i(x,{key:0,class:"empty-icon",src:h.icon,mode:"widthFix"},null,8,["src"])):o("v-if",!0)])),_:1}),h.tip?(t(),i(_,{key:0,class:"empty-tip"},{default:e((()=>[p(s(h.tip),1)])),_:1})):o("v-if",!0),h.btnText?(t(),i(_,{key:1,class:"empty-btn",onClick:h.emptyClick},{default:e((()=>[p(s(h.btnText),1)])),_:1},8,["onClick"])):o("v-if",!0)])),_:1},8,["class","style"])}],["__scopeId","data-v-f99af0bf"]]);export{f as M};