修改pctree的bug
This commit is contained in:
@@ -124,6 +124,23 @@ export default Util.registerShape(
|
||||
});
|
||||
}
|
||||
|
||||
//pctree 数据结构中没有后续指针
|
||||
if (cfg.id.includes('PCTreeHead') && !cfg.headNext) {
|
||||
group.addShape('text', {
|
||||
attrs: {
|
||||
x: width * (5 / 4),
|
||||
y: height * (8 / 7),
|
||||
textAlign: 'center',
|
||||
textBaseline: 'middle',
|
||||
text: '^',
|
||||
fill: style.fill || '#000',
|
||||
fontSize: 20,
|
||||
cursor: cfg.style.cursor,
|
||||
},
|
||||
name: 'text',
|
||||
draggable: true,
|
||||
});
|
||||
}
|
||||
return wrapperRect;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user