"use strict";const e=require("../../vendor.js");if(!Array){(e.resolveComponent("hs-empty")+e.resolveComponent("u-loading-icon"))()}Math||((()=>"../../../components/hs-empty/hs-empty.js")+(()=>"../../../node-modules/uview-plus/components/u-loading-icon/u-loading-icon.js"))();const o=e.defineComponent({__name:"cc-scroll-loading",props:{meta:{type:Object,default:{}},showLoad:{type:Boolean,default:!0}},emits:["load"],setup(o,{emit:t}){const a=o,l=e.ref(""),n=e.ref(!1),u=e.ref({page:1,perPage:20});e.watch(()=>null==a?void 0:a.meta,()=>{const{current_page:e,last_page:o}=a.meta,t=e<o;n.value=t,l.value=t?"上拉加载更多":"已经到底啦～",console.log(null==a?void 0:a.meta,"meta数据变化")});return e.onReachBottom(()=>{const{current_page:e,last_page:o}=a.meta,s=e<o;n.value=s,l.value=s?"上拉加载更多":"已经到底啦～",s&&(u.value.page=e+1,t("load",u.value),setTimeout(()=>{n.value=!1,l.value=""},1e3))}),(o,t)=>{var u,s;return e.e({a:!(null==(u=a.meta)?void 0:u.total)},(null==(s=a.meta)?void 0:s.total)?e.e({b:e.p({text:l.value,mode:"circle",size:"30rpx",show:n.value}),c:!n.value},n.value?{}:{d:e.t(l.value)}):{})}}}),t=e._export_sfc(o,[["__scopeId","data-v-a051001e"]]);wx.createComponent(t);
