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
49 lines (43 loc) • 1.11 kB
JavaScript
import BaseComponent from '@digivue/core/basecomponent';
import BadgeStyle from 'digivue/badge/style';
import { createElementBlock, openBlock, mergeProps, renderSlot, createTextVNode, toDisplayString } from 'vue';
var script$1 = {
name: 'BaseBadge',
"extends": BaseComponent,
props: {
value: {
type: [String, Number],
"default": null
},
severity: {
type: String,
"default": null
},
size: {
type: String,
"default": null
}
},
style: BadgeStyle,
provide: function provide() {
return {
$pcBadge: this,
$parentInstance: this
};
}
};
var script = {
name: 'Badge',
"extends": script$1,
inheritAttrs: false
};
function render(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock("span", mergeProps({
"class": _ctx.cx('root')
}, _ctx.ptmi('root')), [renderSlot(_ctx.$slots, "default", {}, function () {
return [createTextVNode(toDisplayString(_ctx.value), 1)];
})], 16);
}
script.render = render;
export { script as default };
//# sourceMappingURL=index.mjs.map