UNPKG

@iebh/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

26 lines (22 loc) 688 B
import { Vue } from '../../../vue'; import { SLOT_NAME_TABLE_COLGROUP } from '../../../constants/slots'; // --- Props --- export var props = {}; // --- Mixin --- // @vue/component export var colgroupMixin = Vue.extend({ methods: { renderColgroup: function renderColgroup() { var fields = this.computedFields; var h = this.$createElement; var $colgroup = h(); if (this.hasNormalizedSlot(SLOT_NAME_TABLE_COLGROUP)) { $colgroup = h('colgroup', { key: 'colgroup' }, [this.normalizeSlot(SLOT_NAME_TABLE_COLGROUP, { columns: fields.length, fields: fields })]); } return $colgroup; } } });