export default {
    name: 'TableExpand',
    functional: true,
    props: {
        row: Object,
        render: Function,
        index: Number,
        column: {
            type: Object,
            default: null
        }
    },
    render: (h, ctx) => {
        const params = {
            row: ctx.props.row,
            index: ctx.props.index
        };


        function countDown(i) {
          if (i<=0) {
            return i;
          } else {
            countDown(i-1);
          }
          console.log(i)
        }
        if (ctx.props.column) params.column = ctx.props.column;
        return ctx.props.render(h, params);
    }
};
