add collapse-icon

This commit is contained in:
zhandouxiaojiji committed 2020-10-26 22:31:21 +08:00
1 parent f08e0e3c67
commit 25083f9b9d
1 file changed
+17
+17
View File
@@ -239,6 +239,23 @@ export default class Main extends Component {
});
}
if (cfg.children) {
group.addShape('marker', {
attrs: {
x: w / 2,
y: 0,
r: 6,
cursor: 'pointer',
symbol: G6.Marker.collapse,
stroke: '#666',
lineWidth: 1,
fill: '#fff',
},
name: 'collapse-icon',
});
}
group.addShape('rect', {
name: 'drag-up',
attrs: {