UNPKG

primevue

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue) [![Discord Chat](https://img.shields.io/discord/55794023

94 lines (81 loc) 2.67 kB
this.primevue = this.primevue || {}; this.primevue.card = (function (vue) { 'use strict'; var script = { name: 'Card' }; const _hoisted_1 = { class: "p-card p-component" }; const _hoisted_2 = { key: 0, class: "p-card-header" }; const _hoisted_3 = { class: "p-card-body" }; const _hoisted_4 = { key: 0, class: "p-card-title" }; const _hoisted_5 = { key: 1, class: "p-card-subtitle" }; const _hoisted_6 = { class: "p-card-content" }; const _hoisted_7 = { key: 2, class: "p-card-footer" }; function render(_ctx, _cache, $props, $setup, $data, $options) { return (vue.openBlock(), vue.createBlock("div", _hoisted_1, [ (_ctx.$slots.header) ? (vue.openBlock(), vue.createBlock("div", _hoisted_2, [ vue.renderSlot(_ctx.$slots, "header") ])) : vue.createCommentVNode("", true), vue.createVNode("div", _hoisted_3, [ (_ctx.$slots.title) ? (vue.openBlock(), vue.createBlock("div", _hoisted_4, [ vue.renderSlot(_ctx.$slots, "title") ])) : vue.createCommentVNode("", true), (_ctx.$slots.subtitle) ? (vue.openBlock(), vue.createBlock("div", _hoisted_5, [ vue.renderSlot(_ctx.$slots, "subtitle") ])) : vue.createCommentVNode("", true), vue.createVNode("div", _hoisted_6, [ vue.renderSlot(_ctx.$slots, "content") ]), (_ctx.$slots.footer) ? (vue.openBlock(), vue.createBlock("div", _hoisted_7, [ vue.renderSlot(_ctx.$slots, "footer") ])) : vue.createCommentVNode("", true) ]) ])) } function styleInject(css, ref) { if ( ref === void 0 ) ref = {}; var insertAt = ref.insertAt; if (!css || typeof document === 'undefined') { return; } var head = document.head || document.getElementsByTagName('head')[0]; var style = document.createElement('style'); style.type = 'text/css'; if (insertAt === 'top') { if (head.firstChild) { head.insertBefore(style, head.firstChild); } else { head.appendChild(style); } } else { head.appendChild(style); } if (style.styleSheet) { style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } } var css_248z = "\n.p-card-header img {\n width: 100%;\n}\n"; styleInject(css_248z); script.render = render; return script; }(Vue));