根据您需要的格式,您可以自己构建血统/路径
options: ITreeOptions = {
actionMapping: {
mouse: {
dblClick: (tree, node, $event) => {
const lineage = [];
// add clicked node as first item
lineage.push(node.data);
// grab parent of clicked node
let parent = node.parent;
// loop through parents until the root of the tree is reached
while(parent !== null){
lineage.push(parent.data);
parent = parent.parent;
}
}
}
}
}