import{d as e,k as a,p as t,r as s,o as l,j as n,w as o,c,F as m,q as i,x as u}from"./index-018fb6dd.js";const r=e({__name:"index",props:{meta:Object},emits:["change"],setup(e,{emit:r}){const p=e,b=a([]);a([]);const g=a({page:1,limit:5});p.meta&&p.meta;const $=e=>{g.value.page=Number(e)+1,r("change",g.value)};return t((()=>{(()=>{const e=p.meta.limit,a=p.meta.total,t=Math.ceil(a/e);for(let s=0;s<t;s++){const l=s*e+1;let n;n=s===t-1?l===a?`${a}`:`${l}-${a}`:`${l}-${s===t-1?a:(s+1)*e}`,b.value[s]={title:n,page:t},b.value}})()})),(e,a)=>{const t=s("el-tab-pane"),r=s("el-tabs");return l(),n(r,{onTabChange:$},{default:o((()=>[(l(!0),c(m,null,i(b.value,((a,s)=>(l(),n(t,{label:a.title,key:s},{default:o((()=>[u(e.$slots,"content")])),_:2},1032,["label"])))),128))])),_:3})}}});export{r as _};
