update Table

This commit is contained in:
Aresn 2017-06-09 16:44:24 +08:00
parent 297f74ea7f
commit 4098c176e1
6 changed files with 73 additions and 94 deletions

View file

@ -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);
}
};