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

View File

@@ -0,0 +1,35 @@
import { useTheme, useThemePropsDefinition } from '../../composables/theme';
import { h, defineComponent } from 'vue';
import { DropdownThemeMap } from './theme';
export default defineComponent({
name: 'b-dropdown-item',
props: { ...useThemePropsDefinition(DropdownThemeMap, true),
isActive: {
type: Boolean,
default: false
},
tag: {
type: String,
default: 'li'
}
},
setup(props, {
slots
}) {
const {
themeClasses
} = useTheme(props);
return () => {
return h(props.tag ?? 'li', {
role: 'menuitem',
tabindex: 0,
class: ['dropdown-item', ...themeClasses.value, {
'is-active': props.isActive
}]
}, slots.default && slots.default());
};
}
});
//# sourceMappingURL=BDropdownItem.js.map