1 |
- import{d as b,b as f,e as p,r as y,ba as z,D as x,a7 as h,o as C,k as N,a as P,_ as S,__tla as k}from"./index-2f799233.js";import{E as D,__tla as U}from"./index-1c180a16.js";let g,j=Promise.all([(()=>{try{return k}catch{}})(),(()=>{try{return U}catch{}})()]).then(async()=>{g=S(b({name:"Pagination",__name:"index",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pagerCount:{type:Number,default:document.body.clientWidth<992?4:7}},emits:["update:page","update:limit","pagination","pagination"],setup(t,{emit:m}){const c=f(),s=p(()=>c.currentSize),o=y(s.value==="small");z(()=>{o.value=s.value==="small"});const i=t,l=m,e=p({get:()=>i.page,set(a){l("update:page",a)}}),r=p({get:()=>i.limit,set(a){l("update:limit",a)}}),d=a=>{e.value*a>i.total&&(e.value=1),l("pagination",{page:e.value,limit:a})},_=a=>{l("pagination",{page:a,limit:r.value})};return(a,n)=>{const v=D;return x((C(),N(v,{"current-page":e.value,"onUpdate:currentPage":n[0]||(n[0]=u=>e.value=u),"page-size":r.value,"onUpdate:pageSize":n[1]||(n[1]=u=>r.value=u),background:!0,"page-sizes":[10,20,30,50,100],"pager-count":t.pagerCount,total:t.total,small:P(o),class:"float-right mb-15px mt-15px",layout:"total, sizes, prev, pager, next, jumper",onSizeChange:d,onCurrentChange:_},null,8,["current-page","page-size","pager-count","total","small"])),[[h,t.total>0]])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/components/Pagination/index.vue"]])});export{g as _,j as __tla};
|