UNPKG

digivue

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

91 lines (85 loc) 3.11 kB
import BaseComponent from '@digivue/core/basecomponent'; import CardStyle from 'digivue/card/style'; import { createElementBlock, openBlock, mergeProps, createCommentVNode, createElementVNode, renderSlot, createTextVNode, toDisplayString } from 'vue'; var script$1 = { name: 'BaseCard', "extends": BaseComponent, props: { headerTop: { type: Boolean, "default": false }, themed: { type: Boolean, "default": false }, title: { type: String, "default": null }, subtitle: { type: String, "default": null }, headerClass: { type: [String, Object], "default": null }, bodyClass: { type: [String, Object], "default": null }, contentClass: { type: [String, Object], "default": null }, footerClass: { type: [String, Object], "default": null } }, 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 || _ctx.$slots.title || _ctx.$slots.subtitle || _ctx.$slots.headerActions || _ctx.title || _ctx.subtitle ? (openBlock(), createElementBlock("div", mergeProps({ key: 0, "class": [_ctx.cx('header'), _ctx.headerClass] }, _ctx.ptm('header')), [renderSlot(_ctx.$slots, "header", {}, function () { return [createElementVNode("div", null, [_ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("h3", mergeProps({ key: 0, "class": _ctx.cx('title') }, _ctx.ptm('title')), [renderSlot(_ctx.$slots, "title", {}, function () { return [createTextVNode(toDisplayString(_ctx.title), 1)]; })], 16)) : createCommentVNode("", true), createElementVNode("h4", mergeProps({ "class": _ctx.cx('subtitle') }, _ctx.ptm('subtitle')), [renderSlot(_ctx.$slots, "subtitle", {}, function () { return [createTextVNode(toDisplayString(_ctx.subtitle), 1)]; })], 16)]), _ctx.$slots.headerActions ? (openBlock(), createElementBlock("div", mergeProps({ key: 0, "class": _ctx.cx('headerActions') }, _ctx.ptm('headerActions')), [renderSlot(_ctx.$slots, "headerActions")], 16)) : createCommentVNode("", true)]; })], 16)) : createCommentVNode("", true), createElementVNode("div", mergeProps({ "class": [_ctx.cx('body'), _ctx.bodyClass] }, _ctx.ptm('body')), [renderSlot(_ctx.$slots, "default", {}, function () { return [_cache[0] || (_cache[0] = createTextVNode("Default Content"))]; })], 16), _ctx.$slots.footer ? (openBlock(), createElementBlock("div", mergeProps({ key: 1, "class": [_ctx.cx('footer'), _ctx.footerClass] }, _ctx.ptm('footer')), [renderSlot(_ctx.$slots, "footer")], 16)) : createCommentVNode("", true)], 16); } script.render = render; export { script as default }; //# sourceMappingURL=index.mjs.map