change collapse-icon
This commit is contained in:
1 parent
fd3b750007
commit
7d8d077440
2 files changed
+14
-13
No files matched your search
@@ -11,6 +11,12 @@ const NODE_COLORS: any = {
|
||||
|
||||
|
||||
export default function (settings: Settings) {
|
||||
const collapseStyle: any = {
|
||||
'collapse-icon': {
|
||||
// symbol: G6.Marker.expand,
|
||||
fill: 'blue',
|
||||
}
|
||||
};
|
||||
G6.registerNode(
|
||||
'TreeNode',
|
||||
{
|
||||
@@ -206,13 +212,12 @@ export default function (settings: Settings) {
|
||||
});
|
||||
}
|
||||
|
||||
if (cfg.children) {
|
||||
if (Array.isArray(cfg.children) && cfg.children.length > 0) {
|
||||
group.addShape('marker', {
|
||||
attrs: {
|
||||
x: w / 2,
|
||||
y: 0,
|
||||
r: 6,
|
||||
cursor: 'pointer',
|
||||
symbol: G6.Marker.collapse,
|
||||
stroke: '#666',
|
||||
lineWidth: 1,
|
||||
|
||||
Reference in new issue
Block a user