import{_ as t,b as e,d as a,p as n,w as l,i as s,o as i,f as o,k as r,t as d,C as u,R as c}from"./index-2PZN6pGH.js";import{_ as f}from"./uni-card.CpdfOoXJ.js";import{_ as p}from"./uni-pagination.XJcG9eQ1.js";import{_ as h}from"./uni-section.BISPxi99.js";const _=t({components:{},data:()=>({current:3,total:10,pageSize:10}),mounted(){setTimeout((()=>{this.current=5}),3e3)},methods:{add(){this.total+=10},reset(){this.total=0,this.current=1},change(t){console.log(t),this.current=t.current}}},[["render",function(t,_,m,g,b,w){const x=u,v=e(a("uni-card"),f),C=e(a("uni-pagination"),p),y=e(a("uni-section"),h),k=s,j=c;return i(),n(k,null,{default:l((()=>[o(v,{"is-full":"","is-shadow":!1},{default:l((()=>[o(x,{class:"uni-h6"},{default:l((()=>[r("分页器组件，用于展示页码、请求数据等")])),_:1})])),_:1}),o(y,{title:"默认样式",type:"line",padding:""},{default:l((()=>[o(C,{total:50,title:"标题文字"})])),_:1}),o(y,{title:"修改按钮文字",subTitle:"使用 prev-text / next-text 属性修改按钮文字",type:"line",padding:""},{default:l((()=>[o(C,{total:50,title:"标题文字","prev-text":"前一页","next-text":"后一页"})])),_:1}),o(y,{title:"图标样式",subTitle:"使用 show-icon 属性显示图标按钮",type:"line",padding:""},{default:l((()=>[o(C,{"show-icon":!0,total:50,title:"标题文字"})])),_:1}),o(y,{title:"修改数据长度",type:"line",padding:""},{default:l((()=>[o(C,{current:b.current,total:b.total,pageSize:20,title:"标题文字","show-icon":!0,onChange:w.change},null,8,["current","total","onChange"]),o(k,{class:"btn-view"},{default:l((()=>[o(k,null,{default:l((()=>[o(x,{class:"example-info"},{default:l((()=>[r("当前页："+d(b.current)+"，数据总量："+d(b.total)+"条，每页数据："+d(b.pageSize),1)])),_:1})])),_:1}),o(k,{class:"btn-flex"},{default:l((()=>[o(j,{class:"button word-btn","hover-class":"word-btn--hover","hover-start-time":20,"hover-stay-time":70,onClick:w.add},{default:l((()=>[o(x,{class:"word-btn-white"},{default:l((()=>[r("增加10条数据")])),_:1})])),_:1},8,["onClick"]),o(j,{class:"button",type:"default",onClick:w.reset},{default:l((()=>[r("重置数据")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-b23596dd"]]);export{_ as default};
