From 5a8b183c0f9981a8875f12ed7025dfda66969445 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 1 Mar 2025 14:07:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=9D=A5=E6=BA=90?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=8B=E6=8B=89=E6=A1=86=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=AA=92=E4=BD=93=E8=8E=B7=E5=8F=96=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dialog/WorkflowActionsDialog.vue | 9 ++++--- src/components/workflow/FetchMediasAction.vue | 25 ++++++++++++++++++- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/src/components/dialog/WorkflowActionsDialog.vue b/src/components/dialog/WorkflowActionsDialog.vue index ba4f1110..252e736c 100644 --- a/src/components/dialog/WorkflowActionsDialog.vue +++ b/src/components/dialog/WorkflowActionsDialog.vue @@ -157,7 +157,7 @@ onMounted(() => { - + @@ -171,9 +171,11 @@ onMounted(() => { :edges="edges" :nodeTypes="nodeTypes" :default-edge-options="{ type: 'animation', animated: true }" + :edge-updater-radius="10" @dragover="onDragOver" @dragleave="onDragLeave" @keydown="handleKeyDown" + auto-connect > { border-radius: 4px; } -.vue-flow__edges { - filter: invert(100%); +.vue-flow__edge-path, +.vue-flow__connection-path { + stroke-width: 3; } .vue-flow__handle-left { diff --git a/src/components/workflow/FetchMediasAction.vue b/src/components/workflow/FetchMediasAction.vue index df674522..a59946df 100644 --- a/src/components/workflow/FetchMediasAction.vue +++ b/src/components/workflow/FetchMediasAction.vue @@ -90,6 +90,12 @@ async function loadExtraRecommendSources() { } } +// 来源类型下拉框 +const sourceTypeOptions = [ + { value: 'ranking', title: '推荐榜单' }, + { value: 'api', title: 'API' }, +] + // 计算下拉框 const sourceOptions = computed(() => innerList.map(item => item.name)) @@ -113,11 +119,16 @@ onMounted(() => { + + + + + { /> + + + + +