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