primevue
Version:
PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc
2 lines (1 loc) • 1.01 kB
JavaScript
import t from"primevue/basecomponent";import e from"primevue/card/style";import{openBlock as s,createElementBlock as o,mergeProps as r,renderSlot as l,createCommentVNode as a,createElementVNode as c}from"vue";var d={name:"Card",extends:{name:"BaseCard",extends:t,style:e}};d.render=function(t,e,d,i,m,n){return s(),o("div",r({class:t.cx("root")},t.ptm("root"),{"data-pc-name":"card"}),[t.$slots.header?(s(),o("div",r({key:0,class:t.cx("header")},t.ptm("header")),[l(t.$slots,"header")],16)):a("",!0),c("div",r({class:t.cx("body")},t.ptm("body")),[t.$slots.title?(s(),o("div",r({key:0,class:t.cx("title")},t.ptm("title")),[l(t.$slots,"title")],16)):a("",!0),t.$slots.subtitle?(s(),o("div",r({key:1,class:t.cx("subtitle")},t.ptm("subtitle")),[l(t.$slots,"subtitle")],16)):a("",!0),c("div",r({class:t.cx("content")},t.ptm("content")),[l(t.$slots,"content")],16),t.$slots.footer?(s(),o("div",r({key:2,class:t.cx("footer")},t.ptm("footer")),[l(t.$slots,"footer")],16)):a("",!0)],16)],16)};export{d as default};