You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
410 B

export default {
name: "TableExpand",
functional: true,
props: {
render: Function,
row: {},//当前行的数据
column: {},//当前行的配置信息
index: { type: Number, default: 0 }//当前所在行
},
render: (h, ctx) => {
const params = {
row: ctx.props.row, column: ctx.props.column, index: ctx.props.index
}
return ctx.props.render(h, params); //h();
}
};