bootstrap-vue
Version:
BootstrapVue provides one of the most comprehensive implementations of Bootstrap 4 components and grid system for Vue.js and with extensive and automated WAI-ARIA accessibility markup.
36 lines (32 loc) • 672 B
JavaScript
import { mergeData } from 'vue-functional-data-merge';
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);
}
};