Skip to content

Commit

Permalink
🐛 fix: 修正增加连接桩导致的渲染错误
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Mar 19, 2021
1 parent 7a3c171 commit 4dd098e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 28 deletions.
7 changes: 4 additions & 3 deletions packages/mindflow/src/components/CollapseIcon/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
width: 18px;
height: 18px;
border: 1px solid transparent;
border-radius: 20px;
cursor: pointer;
transition: all 150ms ease-in-out;

&-icon {
font-size: 13px;
font-size: 12px;
}
}
3 changes: 1 addition & 2 deletions packages/mindflow/src/components/MindNode/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

.mind-node {
&-container {
position: relative;
padding: 8px;
padding-left: 4px;
border: 1px solid transparent;
Expand Down Expand Up @@ -84,7 +83,7 @@
}

&-edit {
position: absolute;
position: fixed;
top: 10px;
right: 16px;
display: flex;
Expand Down
21 changes: 3 additions & 18 deletions packages/mindflow/src/components/Port/style.less
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
.center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.mind-port-in-port {
//.center;
//width: 12px;
//height: 12px;

width: 100%;
height: 100%;
background: #fff;
border: 2px solid transparent;
border-radius: 100%;
}
.mind-port-out-port {
.center;

width: 20px;
height: 20px;
}

.x6-node [magnet='true']:hover {
opacity: 1;
.mind-port-out-port {
width: 18px;
height: 18px;
}
11 changes: 6 additions & 5 deletions packages/mindflow/src/definition/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,20 @@ export const defaultNode = <T>(node: BaseNode<T>) => {
magnet: 'true',
},
},
zIndex: 1,
},
out: {
position: { name: 'right' },
attrs: {
fo: {
width: 20,
height: 20,
x: -10,
y: -10,
width: 18,
height: 18,
x: -9,
y: -9,
// magnet: 'true',
},
},
zIndex: 100000,
zIndex: 10,
},
},
},
Expand Down

0 comments on commit 4dd098e

Please sign in to comment.