2 lines
957 B
JavaScript
2 lines
957 B
JavaScript
|
import{ah as y,ar as p,d as f,ae as u,o as r,c as t,$ as o,e as s,ag as l,y as d,K as n,x as i,t as c,aj as h,al as m,am as v}from"./index-ce293e15.js";const S=y({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:p([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),C=f({name:"ElCard"}),b=f({...C,props:S,setup($){const a=u("card");return(e,w)=>(r(),t("div",{class:o([s(a).b(),s(a).is(`${e.shadow}-shadow`)])},[e.$slots.header||e.header?(r(),t("div",{key:0,class:o(s(a).e("header"))},[l(e.$slots,"header",{},()=>[d(n(e.header),1)])],2)):i("v-if",!0),c("div",{class:o([s(a).e("body"),e.bodyClass]),style:h(e.bodyStyle)},[l(e.$slots,"default")],6),e.$slots.footer||e.footer?(r(),t("div",{key:1,class:o(s(a).e("footer"))},[l(e.$slots,"footer",{},()=>[d(n(e.footer),1)])],2)):i("v-if",!0)],2))}});var g=m(b,[["__file","card.vue"]]);const E=v(g);export{E};
|