build: 清理 tinyflow-ui 构建告警

- 收口 Svelte props 响应式引用与 custom element props 声明

- 清理局部未使用样式与类型告警并保持现有业务语义
This commit is contained in:
2026-05-06 19:22:33 +08:00
parent ba70fec9a5
commit 8d07b306e5
34 changed files with 288 additions and 151 deletions

View File

@@ -46,8 +46,6 @@
const { onInit }: { onInit: any; [key: string]: any } = $props();
const svelteFlow = useSvelteFlow();
onInit(svelteFlow);
let showEdgePanel = $state(false);
let currentEdge = $state<Edge | null>(null);
let nodePickerVisible = $state(false);
@@ -342,7 +340,7 @@
{ duration: 180 }
);
} else {
svelteFlow.zoomTo(zoom, { duration: 180 });
(svelteFlow as any).zoomTo?.(zoom, { duration: 180 });
}
}
}
@@ -726,6 +724,7 @@
}
onMount(() => {
onInit(svelteFlow);
store.updateEdges((edges) => edges.map((edge) => ensureEdgeVisualDefaults(edge)));
repairOrphanParentNodes();
if (!readonly) {