import{bo as e,aR as o,f as n,g as t,w as i,p as c,E as a,W as d,n as l,i as s,m as A,t as h,A as m,l as r,K as w}from"./index-230f0e25.js";import{_ as u}from"./_plugin-vue_export-helper.1b428a4d.js";const E={en:{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},"zh-Hans":{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},"zh-Hant":{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}};let I;setTimeout((()=>{I=e().platform}),16);const{t:R}=o(E);const D=u({name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:()=>({contentdown:"",contentrefresh:"",contentnomore:""})},showText:{type:Boolean,default:!0}},data:()=>({webviewHide:!1,platform:I,imgBase64:"data:image/png;base64,[encoded data, 6164 characters]"}),computed:{iconSnowWidth(){return 2*(Math.floor(this.iconSize/24)||1)},contentdownText(){return this.contentText.contentdown||R("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||R("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||R("uni-load-more.contentnomore")}},mounted(){},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}},[["render",function(e,o,u,E,I,R){const D=m,g=r,x=w;return n(),t(g,{class:"uni-load-more",onClick:R.onClick},{default:i((()=>[!I.webviewHide&&("circle"===u.iconType||"auto"===u.iconType&&"android"===I.platform)&&"loading"===u.status&&u.showIcon?(n(),c("svg",{key:0,width:"24",height:"24",viewBox:"25 25 50 50",style:a({width:u.iconSize+"px",height:u.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--android-H5"},[d("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:a({color:u.color}),"stroke-width":3},null,4)],4)):!I.webviewHide&&"loading"===u.status&&u.showIcon?(n(),t(g,{key:1,style:a({width:u.iconSize+"px",height:u.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--ios-H5"},{default:i((()=>[l(D,{src:I.imgBase64,mode:"widthFix"},null,8,["src"])])),_:1},8,["style"])):s("",!0),u.showText?(n(),t(x,{key:2,class:"uni-load-more__text",style:a({color:u.color})},{default:i((()=>[A(h("more"===u.status?R.contentdownText:"loading"===u.status?R.contentrefreshText:R.contentnomoreText),1)])),_:1},8,["style"])):s("",!0)])),_:1},8,["onClick"])}],["__scopeId","data-v-d82f3750"]]);export{D as _};
