Blame view

src/components/table/expand.js 479 Bytes
718e773f   刘荣   -
1
2
3
4
5
6
7
  export default {
      name: 'TableExpand',
      functional: true,
      props: {
          row: Object,
          render: Function,
          index: Number,
4098c176   Aresn   update Table
8
9
10
11
          column: {
              type: Object,
              default: null
          }
718e773f   刘荣   -
12
13
      },
      render: (h, ctx) => {
4098c176   Aresn   update Table
14
15
16
17
18
19
          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);
718e773f   刘荣   -
20
21
      }
  };