Blame view

src/components/table/header.js 349 Bytes
096f2bfe   梁灏   fixed #1357
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  export default {
      name: 'TableRenderHeader',
      functional: true,
      props: {
          render: Function,
          column: Object,
          index: Number
      },
      render: (h, ctx) => {
          const params = {
              column: ctx.props.column,
              index: ctx.props.index
          };
          return ctx.props.render(h, params);
      }
  };