Skip to content

Commit 380516f

Browse files
author
昔梦
committed
fix:节点hover出现阴影效果
1 parent dcc004d commit 380516f

File tree

1 file changed

+2
-0
lines changed
  • packages/x-flow/src/components/CustomNode

1 file changed

+2
-0
lines changed

packages/x-flow/src/components/CustomNode/index.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
border-radius: 14px;
44
position: relative;
55
background: #ffffff;
6+
67
.react-flow__edge-path,
78
.react-flow__connection-path {
89
stroke: #d0d5dc;
@@ -22,6 +23,7 @@
2223
transition: all .5s;
2324
}
2425
&:hover{
26+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
2527
.xflow-node-actions-container{
2628
opacity: 1;
2729
}

0 commit comments

Comments
 (0)