update Table
This commit is contained in:
parent
297f74ea7f
commit
4098c176e1
6 changed files with 73 additions and 94 deletions
|
@ -6,8 +6,17 @@ export default {
|
|||
row: Object,
|
||||
render: Function,
|
||||
index: Number,
|
||||
column: {
|
||||
type: Object,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
render: (h, ctx) => {
|
||||
return ctx.props.render(h, {row: ctx.props.row, index: ctx.props.index});
|
||||
const params = {
|
||||
row: ctx.props.row,
|
||||
index: ctx.props.index
|
||||
};
|
||||
if (ctx.props.column) params.column = ctx.props.column;
|
||||
return ctx.props.render(h, params);
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue