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.
58 lines (48 loc) • 1.66 kB
JavaScript
;
exports.__esModule = true;
exports.default = exports.BListGroup = exports.props = void 0;
var _vue = _interopRequireDefault(require("../../utils/vue"));
var _vueFunctionalDataMerge = require("vue-functional-data-merge");
var _inspect = require("../../utils/inspect");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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; }
var props = {
tag: {
type: String,
default: 'div'
},
flush: {
type: Boolean,
default: false
},
horizontal: {
type: [Boolean, String],
default: false
} // @vue/component
};
exports.props = props;
var BListGroup =
/*#__PURE__*/
_vue.default.extend({
name: 'BListGroup',
functional: true,
props: props,
render: function render(h, _ref) {
var props = _ref.props,
data = _ref.data,
children = _ref.children;
var horizontal = props.horizontal === '' ? true : props.horizontal;
horizontal = props.flush ? false : horizontal;
var componentData = {
staticClass: 'list-group',
class: _defineProperty({
'list-group-flush': props.flush,
'list-group-horizontal': horizontal === true
}, "list-group-horizontal-".concat(horizontal), (0, _inspect.isString)(horizontal))
};
return h(props.tag, (0, _vueFunctionalDataMerge.mergeData)(data, componentData), children);
}
});
exports.BListGroup = BListGroup;
var _default = BListGroup;
exports.default = _default;