node_modules/ant-design-vue/es/vc-tree/utils/treeUtil.js
/**
 * Warning if TreeNode do not provides key
 */
Warning if TreeNode do not provides key
Warning if TreeNode do not provides key
function warningWithoutKey(treeData, fieldNames) {
  var keys = new Map();
  function dig(list) {
    var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
    (list || []).forEach(function (treeNode) {
      var key = treeNode[fieldNames.key];
      var children = treeNode[fieldNames.children];
      warning(key !== null && key !== undefined, "Tree node must have a certain key: [".concat(path).concat(key, "]"));
      var recordKey = String(key);
      warning(!keys.has(recordKey) || key === null || key === undefined, "Same 'key' exist in the Tree: ".concat(recordKey));
      keys.set(recordKey, true);
      dig(children, "".concat(path).concat(recordKey, " > "));
    });
  }
  dig(treeData);
}
function warningWithoutKey ( treeData , fieldNames ) { var keys = new Map ( ) ; function dig ( list ) { var path = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : '' ; ( list || [ ] ) . forEach ( function ( treeNode ) { var key = treeNode [ fieldNames . key ] ; var children = treeNode [ fieldNames . children ] ; warning ( key !== null && key !== undefined , "Tree node must have a certain key: [" . concat ( path ) . concat ( key , "]" ) ) ; var recordKey = String ( key ) ; warning ( ! keys . has ( recordKey ) || key === null || key === undefined , "Same 'key' exist in the Tree: " . concat ( recordKey ) ) ; keys . set ( recordKey , true ) ; dig ( children , "" . concat ( path ) . concat ( recordKey , " > " ) ) ; } ) ; } dig ( treeData ) ; }
Warning if TreeNode do not provides key
Warning if TreeNode do not provides key