import{O as B,p as D,e as c,b as A,k as r,o as b,c as v,j as p,A as n,f as u,B as V,l as f,F as x,E,h as y}from"./index.4d3e3847.js";function N(l={}){const{query:o}=B(),t=D([]),e=c(()=>o.id),C=c(()=>{const{baseName:a}=l;return s.value?`${a}\u8BE6\u60C5`:`\u521B\u5EFA${a}`}),s=c(()=>!!e.value),i=c(()=>!e.value);if(l.collapseLen){const a=Array(l.collapseLen).fill(0);t.value=a.map((_,d)=>String(d+1))}function m(a){s.value&&e.value&&(l.initalDetailCallback&&l.initalDetailCallback(e.value),a(e.value))}return s.value&&e.value&&l.initalDetailCallback&&l.initalDetailCallback(e.value),{id:e,label:C,isDetail:s,isCreate:i,collapses:t,initalDetail:m}}const T={class:"bg-white p-[15px]",style:{margin:"0"}},F=A({__name:"detail",setup(l){const{isDetail:o,collapses:t,label:e,id:C}=N({baseName:"\u79BB\u804C\u4EA4\u63A5",collapseLen:2});return(s,i)=>{const m=r("ElCollapseItem"),a=r("ElCollapse"),_=r("ElTabPane"),d=r("ElTabs");return b(),v("div",T,[p(d,null,{default:n(()=>[p(_,{label:u(e)},{default:n(()=>[p(a,{modelValue:u(t),"onUpdate:modelValue":i[0]||(i[0]=k=>V(t)?t.value=k:null)},{default:n(()=>[p(m,{title:u(e),name:"1"},{default:n(()=>[f(" 11 ")]),_:1},8,["title"])]),_:1},8,["modelValue"]),u(o)?(b(),v(x,{key:0},[],64)):E("",!0)]),_:1},8,["label"]),u(o)?(b(),y(_,{key:0,label:"\u5BA1\u6279\u8BB0\u5F55"},{default:n(()=>[f(" 11 ")]),_:1})):E("",!0)]),_:1})])}}});export{F as default};
