Blame view

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