修改PCTree的bug
This commit is contained in:
parent
99d8db171c
commit
23c5eb13b9
@ -2,10 +2,14 @@
|
|||||||
|
|
||||||
|
|
||||||
SV.registerLayout('PCTree', {
|
SV.registerLayout('PCTree', {
|
||||||
|
|
||||||
sourcesPreprocess(sources) {
|
sourcesPreprocess(sources) {
|
||||||
|
|
||||||
sources[0].rootLabel = ['data', 'parent', 'firstChild'];
|
for(let i = 0; i < sources.length; i++){
|
||||||
|
if(sources[i].root){
|
||||||
|
sources[i].rootLabel = ['data', 'parent', 'firstChild'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return sources;
|
return sources;
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user