1 |
- import{d as y,y as f,e as p,r as z,b6 as b,k as x,v as h,o as C,C as N,a as P,_ as S,__tla as k}from"./index-286756b9.js";import{E as U,__tla as j}from"./index-fb47c94c.js";let m,q=Promise.all([(()=>{try{return k}catch{}})(),(()=>{try{return j}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=z(o.value==="small");b(()=>{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=U;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(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};
|