build: 清理 tinyflow-ui 构建告警
- 收口 Svelte props 响应式引用与 custom element props 声明 - 清理局部未使用样式与类型告警并保持现有业务语义
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user