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 r,k as i,u as a,G as y,_ as d,F as f,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-fbe47475.js";import{G as S,H as v,a4 as V}from"./antd-fb8ca017.js";import"./regionApi-ad45a6bd.js";const j={key:0},A=D({__name:"detail",setup(E){var c;const p=I(),g=$((c=p.params)==null?void 0:c.id),k=p.meta.title,{state:u,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:n})=>({key:o,title:e,value:n?n({text:u.value[o],record:u.value}):u.value[o]})):{});return(s,e)=>{const o=m("a-button"),n=m("Image");return l(),_(a(V),{bordered:!1,loading:a(x)},{default:r(()=>[i(a(S),{title:a(k),onBack:e[1]||(e[1]=()=>s.$router.go(-1))},{extra:r(()=>[i(o,{type:"primary",onClick:e[0]||(e[0]=t=>s.$router.go(-1))},{default:r(()=>e[2]||(e[2]=[y("返回上一页面")])),_:1})]),_:1},8,["title"]),i(a(v),{bordered:"",column:3},{default:r(()=>[(l(!0),d(f,null,G(B.value,t=>(l(),_(a(v).Item,{key:t.key,label:t.title,span:["avatar"].includes(t.key)?3:1},{default:r(()=>[t.key==="avatar"?(l(),d("span",j,[i(n,{style:{width:"100px"},src:t.value},null,8,["src"])])):(l(),d(f,{key:1},[y(H(t.value),1)],64))]),_:2},1032,["label","span"]))),128))]),_:1})]),_:1},8,["loading"])}}});const J=N(A,[["__scopeId","data-v-c4597e0a"]]);export{J as default};
