bootstrap-vue
Version:
BootstrapVue, with over 40 plugins and more than 80 custom components, provides one of the most comprehensive implementations of Bootstrap v4 components and grid system for Vue.js. With extensive and automated WAI-ARIA accessibility markup.
35 lines (29 loc) • 928 B
JavaScript
import { isFunction } from '../../../utils/inspect'
import { BTr } from '../tr'
const slotName = 'bottom-row'
export default {
methods: {
renderBottomRow() {
const h = this.$createElement
// Static bottom row slot (hidden in visibly stacked mode as we can't control the data-label)
// If in *always* stacked mode, we don't bother rendering the row
if (!this.hasNormalizedSlot(slotName) || this.stacked === true || this.stacked === '') {
return h()
}
const fields = this.computedFields
return h(
BTr,
{
key: 'b-bottom-row',
staticClass: 'b-table-bottom-row',
class: [
isFunction(this.tbodyTrClass)
? this.tbodyTrClass(null, 'row-bottom')
: this.tbodyTrClass
]
},
this.normalizeSlot(slotName, { columns: fields.length, fields: fields })
)
}
}
}