chengsc
2025-01-18 aa777daee492ba7f53d3c41f235f95c4d5505dbe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export default {
    name: 'RenderCell',
    functional: true,
    props: {
        render: Function,
        data: Object,
        node: Array
    },
    render: (h, ctx) => {
        const params = {
            root: ctx.props.node[0],
            node: ctx.props.node[1],
            data: ctx.props.data
        };
        return ctx.props.render(h, params);
    }
};