2017-10-25 16:45:42 +08:00
|
|
|
export default {
|
|
|
|
name: 'RenderCell',
|
|
|
|
functional: true,
|
|
|
|
props: {
|
|
|
|
render: Function,
|
2017-10-25 19:12:14 +08:00
|
|
|
data: Object,
|
2017-10-25 16:45:42 +08:00
|
|
|
node: Object
|
|
|
|
},
|
|
|
|
render: (h, ctx) => {
|
|
|
|
const params = {
|
2017-10-25 19:12:14 +08:00
|
|
|
node: ctx.props.node,
|
|
|
|
data: ctx.props.data
|
2017-10-25 16:45:42 +08:00
|
|
|
};
|
|
|
|
return ctx.props.render(h, params);
|
|
|
|
}
|
|
|
|
};
|