vue-tables-2
Version:
Vue.js 2 grid components
29 lines (28 loc) • 1.05 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _default = {
name: 'RLTableBody',
inject: ['opts', 'theme', 'source', 'filteredData', 'tableData', 'colspan', 'openChildRows', 'collapsedGroups', 'scopedSlots', 'slots', 'componentsOverride', 'page', 'limit'],
render: function render() {
return this.$scopedSlots["default"]({
opts: this.opts(),
source: this.source,
canToggleGroups: this.opts().toggleGroups,
collapsedGroups: this.collapsedGroups(),
data: this.source === 'client' ? this.filteredData() : this.tableData(),
colspan: this.colspan(),
loading: true,
hasChildRow: this.opts().childRow || this.scopedSlots()['child_row'],
openChildRows: this.openChildRows(),
uniqueRowId: this.opts().uniqueKey,
groupBy: this.opts().groupBy,
slots: this.slots(),
override: this.componentsOverride.tableBody,
initialIndex: (this.page() - 1) * this.limit()
});
}
};
exports["default"] = _default;