bootstrap-vue
Version:
BootstrapVue provides one of the most comprehensive implementations of Bootstrap 4 components and grid system for Vue.js and with extensive and automated WAI-ARIA accessibility markup.
21 lines (18 loc) • 430 B
JavaScript
import { mergeData } from 'vue-functional-data-merge'
import Link, { propsFactory as linkPropsFactory } from '../link/link'
export const props = linkPropsFactory()
export default {
functional: true,
props,
render (h, { props, data, children }) {
return h(
Link,
mergeData(data, {
props,
staticClass: 'dropdown-item',
attrs: { role: 'menuitem' }
}),
children
)
}
}