import{m as f,w as m,ag as e}from"./index.js";function g(n={}){const{query:r}=f(),{collapseLen:t,baseName:s}=n,a=m([]),u=e(()=>r.id),l=e(()=>o.value?`${s}\u8BE6\u60C5`:`\u521B\u5EFA${s}`),o=e(()=>!!u.value);t&&(a.value=c(t));function c(i){return Array(i).fill(0).map((d,p)=>String(p+1))}return{id:u,title:l,isDetail:o,collapses:a}}export{g as u};
