demo.eff35d83.js 1.4 KB

1
  1. import{c as e}from"./mobile.3062a9dc.js";import{A as s,B as l,r as o,o as n,c as a,f as r,F as t,h as d,t as c,z as i}from"./index.d870aa4d.js";const{createDemo:u}=e("pullrefresh");var f=u({props:{},setup:()=>({refresh:e=>{console.log("上拉加载"),setTimeout((()=>{e()}),1e3)},downRefresh:e=>{console.log("下拉刷新"),setTimeout((()=>{e()}),1e3)}})});const h=i();s("data-v-214b083c");const p={class:"demo full"},v=r("h2",null,"纵向",-1),m={class:"vertical"},R={class:"content",id:"pull"},w={class:"main"},_=r("h2",null,"横向",-1),D={class:"horizontal"},H={class:"contentH",id:"pullH"},b={class:"mainH"};l();const z=h(((e,s,l,i,u,f)=>{const z=o("nut-pullrefresh"),I=o("nut-cell");return n(),a("div",p,[v,r(I,null,{default:h((()=>[r("div",m,[r(z,{onRefresh:e.refresh,onDownRefresh:e.downRefresh,useWindow:!1,containerId:"pull"},{default:h((()=>[r("div",R,[r("div",w,[(n(),a(t,null,d([1,2,3,4,5,6,7,8,9],(e=>r("div",{class:"pull-data",key:e},"我是测试数据 "+c(e),1))),64))])])])),_:1},8,["onRefresh","onDownRefresh"])])])),_:1}),_,r(I,null,{default:h((()=>[r("div",D,[r(z,{onRefresh:e.refresh,onDownRefresh:e.downRefresh,useWindow:!1,containerId:"pullH",direction:"horizontal"},{default:h((()=>[r("div",H,[r("div",b,[(n(),a(t,null,d([1,2,3,4,5,6,7,8,9],(e=>r("div",{class:"pull-data",key:e},"我是测试数据 "+c(e),1))),64))])])])),_:1},8,["onRefresh","onDownRefresh"])])])),_:1})])}));f.render=z,f.__scopeId="data-v-214b083c";export default f;