UNPKG

bootstrap-vue

Version:

BootstrapVue, with over 40 plugins and more than 80 custom components, 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 WAI-AR

26 lines (24 loc) 573 B
// Mixin for providing stacked tables export default { props: { stacked: { type: [Boolean, String], default: false } }, computed: { isStacked() { // `true` when always stacked, or returns breakpoint specified return this.stacked === '' ? true : this.stacked }, isStackedAlways() { return this.isStacked === true }, stackedTableClasses() { return { 'b-table-stacked': this.isStackedAlways, [`b-table-stacked-${this.stacked}`]: !this.isStackedAlways && this.isStacked } } } }