import{d as D,ai as I,f as $,o as w,c as F,a6 as _,Z as l,a4 as c,a5 as n,k as i,u as a,G as y,_ as u,F as f,a7 as G,a0 as H}from"./vue-72a104e4.js";import{ao as L,_ as N}from"./index.js";import{g as P,d as R}from"./schema-0004c8eb.js";import{G as S,H as v,a9 as V}from"./antd-0679333d.js";const A={key:0},E=D({__name:"detail",setup(M){var m;const p=I(),g=$((m=p.params)==null?void 0:m.id),k=p.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=_("a-button"),r=_("Image");return l(),c(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]=[y("返回上一页面")])),_:1})]),_:1},8,["title"]),i(a(v),{bordered:"",column:3},{default:n(()=>[(l(!0),u(f,null,G(B.value,t=>(l(),c(a(v).Item,{key:t.key,label:t.title,span:["avatar"].includes(t.key)?3:1},{default:n(()=>[t.key==="avatar"?(l(),u("span",A,[i(r,{style:{width:"100px"},src:t.value},null,8,["src"])])):(l(),u(f,{key:1},[y(H(t.value),1)],64))]),_:2},1032,["label","span"]))),128))]),_:1})]),_:1},8,["loading"])}}});const z=N(E,[["__scopeId","data-v-d6db8810"]]);export{z as default};
