{"size": 1359, "ext": "js", "max_stars_repo_path": "node_modules/bootstrap-vue/esm/components/table/helpers/mixin-bottom-row.js", "max_stars_repo_name": "griffinperry/tfs-c360-riogrande", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "node_modules/bootstrap-vue/esm/components/table/helpers/mixin-bottom-row.js", "max_issues_repo_name": "griffinperry/tfs-c360-riogrande", "max_issues_repo_issues_event_min_datetime": "2021-08-01T12:57:53.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-01T15:28:44.000Z", "max_forks_repo_path": "node_modules/bootstrap-vue/esm/components/table/helpers/mixin-bottom-row.js", "max_forks_repo_name": "griffinperry/tfs-c360-riogrande", "max_forks_repo_forks_event_min_datetime": "2021-08-01T07:06:38.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-01T07:06:38.000Z"}
{"max_stars_count": null, "max_issues_count": 20, "max_forks_count": 1, "avg_line_length": 34.8461538462, "max_line_length": 128, "alphanum_fraction": 0.6004415011}
import { Vue } from '../../../vue';
import { SLOT_NAME_BOTTOM_ROW } from '../../../constants/slots';
import { isFunction } from '../../../utils/inspect';
import { BTr } from '../tr'; // --- Props ---

export var props = {}; // --- Mixin ---
// @vue/component

export var bottomRowMixin = Vue.extend({
  props: props,
  methods: {
    renderBottomRow: function renderBottomRow() {
      var fields = this.computedFields,
          stacked = this.stacked,
          tbodyTrClass = this.tbodyTrClass,
          tbodyTrAttr = this.tbodyTrAttr;
      var 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(SLOT_NAME_BOTTOM_ROW) || stacked === true || stacked === '') {
        return h();
      }

      return h(BTr, {
        staticClass: 'b-table-bottom-row',
        class: [isFunction(tbodyTrClass) ?
        /* istanbul ignore next */
        tbodyTrClass(null, 'row-bottom') : tbodyTrClass],
        attrs: isFunction(tbodyTrAttr) ?
        /* istanbul ignore next */
        tbodyTrAttr(null, 'row-bottom') : tbodyTrAttr,
        key: 'b-bottom-row'
      }, this.normalizeSlot(SLOT_NAME_BOTTOM_ROW, {
        columns: fields.length,
        fields: fields
      }));
    }
  }
});