import{_ as a,o as e,p as t,w as l,aq as s,f as i,v as d,k as n,t as c,B as r,a4 as o,D as u,i as _,C as p}from"./index-2PZN6pGH.js";const f=a({name:"UniCard",emits:["click"],props:{title:{type:String,default:""},subTitle:{type:String,default:""},padding:{type:String,default:"10px"},margin:{type:String,default:"15px"},spacing:{type:String,default:"0 10px"},extra:{type:String,default:""},cover:{type:String,default:""},thumbnail:{type:String,default:""},isFull:{type:Boolean,default:!1},isShadow:{type:Boolean,default:!0},shadow:{type:String,default:"0px 0px 3px 1px rgba(0, 0, 0, 0.08)"},border:{type:Boolean,default:!0}},methods:{onClick(a){this.$emit("click",a)}}},[["render",function(a,f,h,g,y,x){const k=u,m=_,b=p;return e(),t(m,{class:o(["uni-card",{"uni-card--full":h.isFull,"uni-card--shadow":h.isShadow,"uni-card--border":h.border}]),style:r({margin:h.isFull?0:h.margin,padding:h.spacing,"box-shadow":h.isShadow?h.shadow:""})},{default:l((()=>[s(a.$slots,"cover",{},(()=>[h.cover?(e(),t(m,{key:0,class:"uni-card__cover"},{default:l((()=>[i(k,{class:"uni-card__cover-image",mode:"widthFix",onClick:f[0]||(f[0]=a=>x.onClick("cover")),src:h.cover},null,8,["src"])])),_:1})):d("",!0)]),!0),s(a.$slots,"title",{},(()=>[h.title||h.extra?(e(),t(m,{key:0,class:"uni-card__header"},{default:l((()=>[i(m,{class:"uni-card__header-box",onClick:f[1]||(f[1]=a=>x.onClick("title"))},{default:l((()=>[h.thumbnail?(e(),t(m,{key:0,class:"uni-card__header-avatar"},{default:l((()=>[i(k,{class:"uni-card__header-avatar-image",src:h.thumbnail,mode:"aspectFit"},null,8,["src"])])),_:1})):d("",!0),i(m,{class:"uni-card__header-content"},{default:l((()=>[i(b,{class:"uni-card__header-content-title uni-ellipsis"},{default:l((()=>[n(c(h.title),1)])),_:1}),h.title&&h.subTitle?(e(),t(b,{key:0,class:"uni-card__header-content-subtitle uni-ellipsis"},{default:l((()=>[n(c(h.subTitle),1)])),_:1})):d("",!0)])),_:1})])),_:1}),i(m,{class:"uni-card__header-extra",onClick:f[2]||(f[2]=a=>x.onClick("extra"))},{default:l((()=>[i(b,{class:"uni-card__header-extra-text"},{default:l((()=>[n(c(h.extra),1)])),_:1})])),_:1})])),_:1})):d("",!0)]),!0),i(m,{class:"uni-card__content",style:r({padding:h.padding}),onClick:f[3]||(f[3]=a=>x.onClick("content"))},{default:l((()=>[s(a.$slots,"default",{},void 0,!0)])),_:3},8,["style"]),i(m,{class:"uni-card__actions",onClick:f[4]||(f[4]=a=>x.onClick("actions"))},{default:l((()=>[s(a.$slots,"actions",{},void 0,!0)])),_:3})])),_:3},8,["class","style"])}],["__scopeId","data-v-64011453"]]);export{f as _};
