1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| 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();
| }
| };
|
|