UNPKG

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

52 lines (46 loc) 2.09 kB
import BaseComponent from '@primevue/core/basecomponent'; import CardStyle from 'primevue/card/style'; import { createElementBlock, openBlock, mergeProps, createCommentVNode, createElementVNode, renderSlot } from 'vue'; var script$1 = { name: 'BaseCard', "extends": BaseComponent, style: CardStyle, provide: function provide() { return { $pcCard: this, $parentInstance: this }; } }; var script = { name: 'Card', "extends": script$1, inheritAttrs: false }; function render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("div", mergeProps({ "class": _ctx.cx('root') }, _ctx.ptmi('root')), [_ctx.$slots.header ? (openBlock(), createElementBlock("div", mergeProps({ key: 0, "class": _ctx.cx('header') }, _ctx.ptm('header')), [renderSlot(_ctx.$slots, "header")], 16)) : createCommentVNode("", true), createElementVNode("div", mergeProps({ "class": _ctx.cx('body') }, _ctx.ptm('body')), [_ctx.$slots.title || _ctx.$slots.subtitle ? (openBlock(), createElementBlock("div", mergeProps({ key: 0, "class": _ctx.cx('caption') }, _ctx.ptm('caption')), [_ctx.$slots.title ? (openBlock(), createElementBlock("div", mergeProps({ key: 0, "class": _ctx.cx('title') }, _ctx.ptm('title')), [renderSlot(_ctx.$slots, "title")], 16)) : createCommentVNode("", true), _ctx.$slots.subtitle ? (openBlock(), createElementBlock("div", mergeProps({ key: 1, "class": _ctx.cx('subtitle') }, _ctx.ptm('subtitle')), [renderSlot(_ctx.$slots, "subtitle")], 16)) : createCommentVNode("", true)], 16)) : createCommentVNode("", true), createElementVNode("div", mergeProps({ "class": _ctx.cx('content') }, _ctx.ptm('content')), [renderSlot(_ctx.$slots, "content")], 16), _ctx.$slots.footer ? (openBlock(), createElementBlock("div", mergeProps({ key: 1, "class": _ctx.cx('footer') }, _ctx.ptm('footer')), [renderSlot(_ctx.$slots, "footer")], 16)) : createCommentVNode("", true)], 16)], 16); } script.render = render; export { script as default }; //# sourceMappingURL=index.mjs.map