Files
manolia-alpha/node_modules/buetify/lib/components/pricingTable/BPricingPlan.js
Robin COuret e0e50af706 init component
2026-02-16 17:28:37 +01:00

35 lines
822 B
JavaScript
Executable File

import "../../../src/components/pricingTable/pricing-table.sass";
import BPricingPlanPrice from './BPricingPlanPrice';
import { h } from 'vue';
export default function BPricingPlan(props, {
attrs,
slots
}) {
const nodes = [];
if (slots.header) {
nodes.push(h('div', {
class: 'plan-header'
}, slots.header()));
}
nodes.push(h('div', {
class: 'plan-pricing-container'
}, slots.price ? slots.price(props) : h(BPricingPlanPrice, props)));
nodes.push(h('div', {
class: 'plan-items'
}, slots.items && slots.items()));
if (slots.footer) {
nodes.push(h('div', {
class: 'plan-footer'
}, slots.footer()));
}
return h('section', { ...attrs,
class: ['pricing-plan', {
'is-active': !!props.isActive
}]
}, nodes);
}
//# sourceMappingURL=BPricingPlan.js.map