react-lineage-dag
Advanced tools
Comparing version 2.0.12 to 2.0.13
{ | ||
"name": "react-lineage-dag", | ||
"version": "2.0.12", | ||
"version": "2.0.13", | ||
"description": "表格/字段血缘React组件", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -34,5 +34,5 @@ 'use strict'; | ||
// target: item.tgtTableColName, | ||
source: item.srcTableColName !== undefined ? item.srcTableColName : item.srcTableId + '-right', | ||
target: item.tgtTableColName !== undefined ? item.tgtTableColName : item.tgtTableId + '-left', | ||
_isNodeEdge: item.srcTableColName === undefined && item.tgtTableColName === undefined, | ||
source: (item.srcTableColName !== undefined && item.srcTableColName !== null) ? item.srcTableColName : item.srcTableId + '-right', | ||
target: (item.tgtTableColName !== undefined && item.tgtTableColName !== null) ? item.tgtTableColName : item.tgtTableId + '-left', | ||
_isNodeEdge: (item.srcTableColName === undefined || item.srcTableColName === null) && (item.tgtTableColName === undefined || item.tgtTableColName === null), | ||
Class: Edge | ||
@@ -112,2 +112,3 @@ } | ||
} | ||
let addEdges = _.differenceWith(newData.edges, oldData.edges, isSameEdge); | ||
@@ -114,0 +115,0 @@ let rmEdges = _.differenceWith(oldData.edges, newData.edges, isSameEdge); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
253634
4456