16 lines
349 B
JavaScript
16 lines
349 B
JavaScript
![]() |
export default {
|
||
|
name: 'TableRenderHeader',
|
||
|
functional: true,
|
||
|
props: {
|
||
|
render: Function,
|
||
|
column: Object,
|
||
|
index: Number
|
||
|
},
|
||
|
render: (h, ctx) => {
|
||
|
const params = {
|
||
|
column: ctx.props.column,
|
||
|
index: ctx.props.index
|
||
|
};
|
||
|
return ctx.props.render(h, params);
|
||
|
}
|
||
|
};
|