init component

This commit is contained in:
Robin COuret
2026-02-16 17:28:37 +01:00
parent 460c7a25e0
commit e0e50af706
4557 changed files with 666911 additions and 8 deletions

32
node_modules/buetify/lib/components/steps/BStepItem.js generated vendored Executable file
View File

@@ -0,0 +1,32 @@
import { toUndefined } from 'fp-ts/lib/Option';
import { defineComponent, inject, h, computed, withDirectives, vShow } from 'vue';
import { BStepItemPropsDefinition, DEFAULT_STEP_INJECTION, STEP_ITEM_NAME, STEPS_SYMBOL } from './shared';
export default defineComponent({
name: STEP_ITEM_NAME,
props: BStepItemPropsDefinition,
setup(props, {
slots
}) {
const injection = inject(STEPS_SYMBOL, DEFAULT_STEP_INJECTION);
const index = injection.steps.findIndex(p => p.label === props.label);
if (index > -1) {
injection.steps.splice(index, 1, props);
} else {
injection.steps.push(props);
}
const isActive = computed(() => toUndefined(injection.activeLabel.value) === props.label);
return () => {
return withDirectives(h('section', {
class: 'step-item',
'aria-label': props.label
}, slots.default && slots.default({
isActive: isActive.value
})), [[vShow, isActive.value]]);
};
}
});
//# sourceMappingURL=BStepItem.js.map