UNPKG

bootstrap-vue

Version:

BootstrapVue, with more than 85 custom components, over 45 plugins, several custom directives, and over 300 icons, provides one of the most comprehensive implementations of Bootstrap v4 components and grid system for Vue.js. With extensive and automated W

25 lines (24 loc) 875 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; } // Mixin for providing stacked tables export default { props: { stacked: { type: [Boolean, String], default: false } }, computed: { isStacked: function isStacked() { // `true` when always stacked, or returns breakpoint specified return this.stacked === '' ? true : this.stacked; }, isStackedAlways: function isStackedAlways() { return this.isStacked === true; }, stackedTableClasses: function stackedTableClasses() { return _defineProperty({ 'b-table-stacked': this.isStackedAlways }, "b-table-stacked-".concat(this.stacked), !this.isStackedAlways && this.isStacked); } } };