From b117a6f198dec7b739aae9873ff9cfa179ec4117 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Thu, 4 Apr 2024 14:19:49 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=B5=81=E7=A8=8B=E9=A2=84=E8=A7=88?= =?UTF-8?q?=20=E8=BF=9B=E8=A1=8C=E4=B8=AD=E5=8A=A8=E7=94=BB=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BpmnView/index.vue | 35 ++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/src/components/BpmnView/index.vue b/src/components/BpmnView/index.vue index 08ce1c5..fa625bf 100644 --- a/src/components/BpmnView/index.vue +++ b/src/components/BpmnView/index.vue @@ -338,16 +338,35 @@ defineExpose({ :deep(.highlight.djs-connection > .djs-visual > path) { stroke: green !important; } - :deep(.highlight-todo.djs-connection > .djs-visual > path) { - stroke: orange !important; - stroke-dasharray: 4px !important; - fill-opacity: 0.2 !important; - marker-end: url(#sequenceflow-end-_E7DFDF-_E7DFDF-803g1kf6zwzmcig1y2ulm5egr); + + // 边框滚动动画 + @keyframes path-animation { + from { + stroke-dashoffset: 100%; + } + + to { + stroke-dashoffset: 0%; + } } - :deep(.highlight-todo.djs-shape .djs-visual > :nth-child(1)) { - fill: orange !important; - stroke: orange !important; + + :deep(.highlight-todo.djs-connection > .djs-visual > path) { + animation: path-animation 60s; + animation-timing-function: linear; + animation-iteration-count: infinite; stroke-dasharray: 4px !important; + stroke: orange !important; + fill-opacity: 0.2 !important; + marker-end: url('#sequenceflow-end-_E7DFDF-_E7DFDF-803g1kf6zwzmcig1y2ulm5egr'); + } + + :deep(.highlight-todo.djs-shape .djs-visual > :nth-child(1)) { + animation: path-animation 60s; + animation-timing-function: linear; + animation-iteration-count: infinite; + stroke-dasharray: 4px !important; + stroke: orange !important; + fill: orange !important; fill-opacity: 0.2 !important; } }