UNPKG

bootstrap-vue

Version:

With more than 85 components, over 45 available plugins, several directives, and 1000+ icons, BootstrapVue provides one of the most comprehensive implementations of the Bootstrap v4 component and grid system available for Vue.js v2.6, complete with extens

21 lines (19 loc) 593 B
import Vue, { mergeData } from '../../vue' import { NAME_INPUT_GROUP_PREPEND } from '../../constants/components' import { BInputGroupAddon, commonProps } from './input-group-addon' // @vue/component export const BInputGroupPrepend = /*#__PURE__*/ Vue.extend({ name: NAME_INPUT_GROUP_PREPEND, functional: true, props: commonProps, render(h, { props, data, children }) { // pass all our props/attrs down to child, and set`append` to false return h( BInputGroupAddon, mergeData(data, { props: { ...props, append: false } }), children ) } })