1 |
- import{d as y,Y as f,K as p,r as x,by as z,x as b,a4 as h,o as C,v as N,a as P,_ as S,__tla as U}from"./index-e3afde76.js";import{E as j,__tla as k}from"./index-2d20a7ff.js";let m,q=Promise.all([(()=>{try{return U}catch{}})(),(()=>{try{return k}catch{}})()]).then(async()=>{m=S(y({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?5:7}},emits:["update:page","update:limit","pagination","pagination"],setup(t,{emit:g}){const c=f(),o=p(()=>c.currentSize),s=x(o.value==="small");z(()=>{s.value=o.value==="small"});const i=t,l=g,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=j;return b((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(s),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-admin/src/components/Pagination/index.vue"]])});export{m as _,q as __tla};
|