import{d as D,aj as I,f as $,o as w,c as F,a6 as m,Z as l,a4 as _,a5 as n,k as i,u as a,G as f,_ as u,F as y,a7 as G,a0 as H}from"./vue-08ef39cb.js";import{al as L,_ as N}from"./index.js";import{g as P,d as R}from"./schema-0ccd7140.js";import{G as S,H as v,a4 as V}from"./antd-fb8ca017.js";const j={key:0},A=D({__name:"detail",setup(E){var p;const c=I(),g=$((p=c.params)==null?void 0:p.id),k=c.meta.title,{state:d,isReady:b,isLoading:x,execute:C}=L(P(g.value).then(s=>s),null,{immediate:!1});w(()=>{C()});const B=F(()=>b.value?R.map(({title:e,dataIndex:o="",customRender:r})=>({key:o,title:e,value:r?r({text:d.value[o],record:d.value}):d.value[o]})):{});return(s,e)=>{const o=m("a-button"),r=m("Image");return l(),_(a(V),{bordered:!1,loading:a(x)},{default:n(()=>[i(a(S),{title:a(k),onBack:e[1]||(e[1]=()=>s.$router.go(-1))},{extra:n(()=>[i(o,{type:"primary",onClick:e[0]||(e[0]=t=>s.$router.go(-1))},{default:n(()=>e[2]||(e[2]=[f("返回上一页面")])),_:1})]),_:1},8,["title"]),i(a(v),{bordered:"",column:3},{default:n(()=>[(l(!0),u(y,null,G(B.value,t=>(l(),_(a(v).Item,{key:t.key,label:t.title,span:["avatar"].includes(t.key)?3:1},{default:n(()=>[t.key==="avatar"?(l(),u("span",j,[i(r,{style:{width:"100px"},src:t.value},null,8,["src"])])):(l(),u(y,{key:1},[f(H(t.value),1)],64))]),_:2},1032,["label","span"]))),128))]),_:1})]),_:1},8,["loading"])}}});const z=N(A,[["__scopeId","data-v-4cbfd845"]]);export{z as default};
