UNPKG

bootstrap-vue

Version:

BootstrapVue, with over 40 plugins and more than 75 custom components, provides one of the most comprehensive implementations of Bootstrap v4 components and grid system for Vue.js. With extensive and automated WAI-ARIA accessibility markup.

48 lines (46 loc) 1.22 kB
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } import Vue from '../../utils/vue'; import { mergeData } from 'vue-functional-data-merge'; import { getComponentConfig } from '../../utils/config'; var NAME = 'BFormText'; export var props = { id: { type: String, default: null }, tag: { type: String, default: 'small' }, textVariant: { type: String, default: function _default() { return getComponentConfig(NAME, 'textVariant'); } }, inline: { type: Boolean, default: false } // @vue/component }; export var BFormText = /*#__PURE__*/ Vue.extend({ name: NAME, functional: true, props: props, render: function render(h, _ref) { var props = _ref.props, data = _ref.data, children = _ref.children; return h(props.tag, mergeData(data, { class: _defineProperty({ 'form-text': !props.inline }, "text-".concat(props.textVariant), Boolean(props.textVariant)), attrs: { id: props.id } }), children); } }); export default BFormText;