Blame view

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