UNPKG

@tenrok/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

29 lines (24 loc) 692 B
import { extend } from '../../vue' import { NAME_FORM_RADIO } from '../../constants/components' import { makePropsConfigurable } from '../../utils/props' import { formRadioCheckMixin, props as formRadioCheckProps } from '../../mixins/form-radio-check' // --- Props --- export const props = makePropsConfigurable(formRadioCheckProps, NAME_FORM_RADIO) // --- Main component --- // @vue/component export const BFormRadio = /*#__PURE__*/ extend({ name: NAME_FORM_RADIO, mixins: [formRadioCheckMixin], inject: { getBvGroup: { from: 'getBvRadioGroup', default: () => () => null } }, props, computed: { bvGroup() { return this.getBvGroup() } } })