bootstrap-vue
Version:
With more than 85 components, over 45 available plugins, several directives, and 1000+ icons, BootstrapVue provides one of the most comprehensive implementations of the Bootstrap v4 component and grid system available for Vue.js v2.6, complete with extens
41 lines (38 loc) • 1.31 kB
JavaScript
import Vue from '../../vue'
import { NAME_TABLE_LITE } from '../../constants/components'
import hasListenerMixin from '../../mixins/has-listener'
import idMixin from '../../mixins/id'
import normalizeSlotMixin from '../../mixins/normalize-slot'
// Table helper Mixins
import captionMixin from './helpers/mixin-caption'
import colgroupMixin from './helpers/mixin-colgroup'
import itemsMixin from './helpers/mixin-items'
import stackedMixin from './helpers/mixin-stacked'
import tableRendererMixin from './helpers/mixin-table-renderer'
import tbodyMixin from './helpers/mixin-tbody'
import tfootMixin from './helpers/mixin-tfoot'
import theadMixin from './helpers/mixin-thead'
// b-table-lite component definition
// @vue/component
export const BTableLite = /*#__PURE__*/ Vue.extend({
name: NAME_TABLE_LITE,
// Order of mixins is important!
// They are merged from first to last, followed by this component.
mixins: [
// Required mixins
hasListenerMixin,
idMixin,
normalizeSlotMixin,
itemsMixin,
tableRendererMixin,
stackedMixin,
theadMixin,
tfootMixin,
tbodyMixin,
// Features Mixins
// These are pretty lightweight, and are useful for lightweight tables
captionMixin,
colgroupMixin
]
// render function provided by table-renderer mixin
})