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