Blame view

src/components/tree/render.js 333 Bytes
174836c4   梁灏   update Tree Rende...
1
2
3
4
5
  export default {
      name: 'RenderCell',
      functional: true,
      props: {
          render: Function,
97098fcd   梁灏   update Tree example
6
          data: Object,
174836c4   梁灏   update Tree Rende...
7
8
9
10
          node: Object
      },
      render: (h, ctx) => {
          const params = {
97098fcd   梁灏   update Tree example
11
12
              node: ctx.props.node,
              data: ctx.props.data
174836c4   梁灏   update Tree Rende...
13
14
15
16
          };
          return ctx.props.render(h, params);
      }
  };