UNPKG

vue-tables-2

Version:
18 lines (15 loc) 370 B
"use strict"; module.exports = function (h, row, index, scopedSlot) { // scoped slot if (scopedSlot) return scopedSlot({ row: row, index: index }); var childRow = this.opts.childRow; // function if (typeof childRow === 'function') return childRow.apply(this, [h, row]); // component return h(childRow, { attrs: { data: row } }); };