primevue
Version:
[](https://opensource.org/licenses/MIT) [](https://badge.fury.io/js/primevue) [ • 1.36 kB
JavaScript
this.primevue=this.primevue||{},this.primevue.card=function(e){"use strict";var t={name:"Card"};const o={class:"p-card p-component"},r={key:0,class:"p-card-header"},c={class:"p-card-body"},s={key:0,class:"p-card-title"},d={key:1,class:"p-card-subtitle"},n={class:"p-card-content"},l={key:2,class:"p-card-footer"};return function(e,t){void 0===t&&(t={});var o=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css","top"===o&&r.firstChild?r.insertBefore(c,r.firstChild):r.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e))}}("\n.p-card-header img {\n width: 100%;\n}\n"),t.render=function(t,a,i,p,m,u){return e.openBlock(),e.createBlock("div",o,[t.$slots.header?(e.openBlock(),e.createBlock("div",r,[e.renderSlot(t.$slots,"header")])):e.createCommentVNode("",!0),e.createVNode("div",c,[t.$slots.title?(e.openBlock(),e.createBlock("div",s,[e.renderSlot(t.$slots,"title")])):e.createCommentVNode("",!0),t.$slots.subtitle?(e.openBlock(),e.createBlock("div",d,[e.renderSlot(t.$slots,"subtitle")])):e.createCommentVNode("",!0),e.createVNode("div",n,[e.renderSlot(t.$slots,"content")]),t.$slots.footer?(e.openBlock(),e.createBlock("div",l,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)])])},t}(Vue);