1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
export default { name: 'TableSlot', functional: true, inject: ['tableRoot'], props: { row: Object, index: Number, column: { type: Object, default: null } }, render: (h, ctx) => { return h('div', ctx.injections.tableRoot.$scopedSlots[ctx.props.column.slot]({ row: ctx.props.row, column: ctx.props.column, index: ctx.props.index })); } };