UNPKG

bootstrap-vue

Version:

Quickly integrate Bootstrap 4 components with Vue.js

36 lines (32 loc) 750 B
import { mergeData } from "../../utils"; export var props = { tag: { type: String, default: "div" }, deck: { type: Boolean, default: false }, columns: { type: Boolean, default: false } }; export default { functional: true, props: props, render: function render(h, _ref) { var props = _ref.props, data = _ref.data, children = _ref.children; var staticClass = "card-group"; if (props.columns) { staticClass = "card-columns"; } if (props.deck) { staticClass = "card-deck"; } return h(props.tag, mergeData(data, { staticClass: staticClass }), children); } };