vue-tables-2
Version:
Vue.js 2 grid components
18 lines (15 loc) • 370 B
JavaScript
;
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
}
});
};