UNPKG

bootstrap-vue

Version:

Quickly integrate Bootstrap 4 components with Vue.js

29 lines (25 loc) 819 B
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 { mergeData } from "../../utils"; export var props = { tag: { type: String, default: "div" }, verticalAlign: { type: String, default: "top" } }; export default { 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, { staticClass: "d-flex", class: _defineProperty({}, "align-self-" + props.verticalAlign, props.verticalAlign) }), children); } };