UNPKG

bootstrap-vue

Version:

Quickly integrate Bootstrap 4 components with Vue.js

30 lines (27 loc) 586 B
import { mergeData } from "../../utils"; export const props = { tag: { type: String, default: "div" }, verticalAlign: { type: String, default: "top" } }; export default { functional: true, props, render(h, { props, data, children }) { return h( props.tag, mergeData(data, { staticClass: "d-flex", class: { [`align-self-${props.verticalAlign}`]: props.verticalAlign } }), children ); } };