import{a3 as e,av as o,_ as n,o as t,p as i,w as c,e as a,B as d,au as s,f as l,v as A,k as h,t as m,D as r,i as w,C as u}from"./index-2PZN6pGH.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:D}=o(E);const R=n({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||D("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||D("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||D("uni-load-more.contentnomore")}},mounted(){},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}},[["render",function(e,o,n,E,I,D){const R=r,J=w,x=u;return t(),i(J,{class:"uni-load-more",onClick:D.onClick},{default:c((()=>[!I.webviewHide&&("circle"===n.iconType||"auto"===n.iconType&&"android"===I.platform)&&"loading"===n.status&&n.showIcon?(t(),a("svg",{key:0,width:"24",height:"24",viewBox:"25 25 50 50",style:d({width:n.iconSize+"px",height:n.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--android-H5"},[s("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:d({color:n.color}),"stroke-width":3},null,4)],4)):!I.webviewHide&&"loading"===n.status&&n.showIcon?(t(),i(J,{key:1,style:d({width:n.iconSize+"px",height:n.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--ios-H5"},{default:c((()=>[l(R,{src:I.imgBase64,mode:"widthFix"},null,8,["src"])])),_:1},8,["style"])):A("",!0),n.showText?(t(),i(x,{key:2,class:"uni-load-more__text",style:d({color:n.color})},{default:c((()=>[h(m("more"===n.status?D.contentdownText:"loading"===n.status?D.contentrefreshText:D.contentnomoreText),1)])),_:1},8,["style"])):A("",!0)])),_:1},8,["onClick"])}],["__scopeId","data-v-13bb0eea"]]);export{R as _};
