UNPKG

custom-bootstrap-vue

Version:

Custom version of bootstrap-vue created for providing specific theme to a particular project

47 lines (44 loc) 935 B
import Vue from '../../utils/vue' import { mergeData } from 'vue-functional-data-merge' export const props = { id: { type: String // default: null }, tag: { type: String, default: 'header' }, variant: { type: String // default: null } } // @vue/component export const BDropdownHeader = /*#__PURE__*/ Vue.extend({ name: 'BDropdownHeader', functional: true, props, render(h, { props, data, children }) { const $attrs = data.attrs || {} data.attrs = {} return h('li', mergeData(data, { attrs: { role: 'presentation' } }), [ h( props.tag, { staticClass: 'dropdown-header', class: { [`text-${props.variant}`]: props.variant }, attrs: { ...$attrs, id: props.id || null, role: 'heading' }, ref: 'header' }, children ) ]) } })