src/util.js
function processProps(props) {
  const { title, label, key, value } = props;
  const cloneProps = { ...props };

  // Warning user not to use deprecated label prop.
  if (label && !title) {
    if (!warnDeprecatedLabel) {
      warning(false, "'label' in treeData is deprecated. Please use 'title' instead.");
      warnDeprecatedLabel = true;
    }

    cloneProps.title = label;
  }

  if (!key) {
    cloneProps.key = value;
  }

  return cloneProps;
}
function processProps(props) {
  const { title, label, key, value } = props;
  const cloneProps = { ...props };

  // Warning user not to use deprecated label prop.
  if (label && !title) {
    if (!warnDeprecatedLabel) {
      warning(false, "'label' in treeData is deprecated. Please use 'title' instead.");
      warnDeprecatedLabel = true;
    }

    cloneProps.title = label;
  }

  if (!key) {
    cloneProps.key = value;
  }

  return cloneProps;
}
function processProps ( props ) { const { title , label , key , value } = props ; const cloneProps = { ... props } ; // Warning user not to use deprecated label prop. if ( label && ! title ) { if ( ! warnDeprecatedLabel ) { warning ( false , "'label' in treeData is deprecated. Please use 'title' instead." ) ; warnDeprecatedLabel = true ; } cloneProps . title = label ; } if ( ! key ) { cloneProps . key = value ; } return cloneProps ; }
Use `rc-tree` convertDataToTree to convert treeData to TreeNodes.
This will change the label to title value
Use rc - tree convertDataToTree to convert treeData to TreeNodes . This will change the label to title value