chore: type fix in examples

This commit is contained in:
Braks
2022-04-11 16:43:07 +02:00
parent e17fb8094b
commit efe68d7b54
+3 -3
View File
@@ -50,7 +50,7 @@ const { onPaneReady } = useVueFlow({
const sourceNodeSelected = (<GraphEdge>el).sourceNode.selected const sourceNodeSelected = (<GraphEdge>el).sourceNode.selected
return { return {
transition: 'stroke ease-in-out 300ms', transition: 'stroke ease-in-out 300ms',
stroke: el.selected || sourceNodeSelected ? 'var(--secondary)' : undefined, stroke: el.selected || sourceNodeSelected ? 'var(--secondary)' : '',
} }
}, },
}, },
@@ -67,7 +67,7 @@ const { onPaneReady } = useVueFlow({
const sourceNodeSelected = (<GraphEdge>el).sourceNode.selected const sourceNodeSelected = (<GraphEdge>el).sourceNode.selected
return { return {
transition: 'stroke ease-in-out 300ms', transition: 'stroke ease-in-out 300ms',
stroke: el.selected || sourceNodeSelected ? 'red' : undefined, stroke: el.selected || sourceNodeSelected ? 'red' : '',
} }
}, },
}, },
@@ -85,7 +85,7 @@ const { onPaneReady } = useVueFlow({
const sourceNodeSelected = (<GraphEdge>el).sourceNode.selected const sourceNodeSelected = (<GraphEdge>el).sourceNode.selected
return { return {
transition: 'stroke ease-in-out 300ms', transition: 'stroke ease-in-out 300ms',
stroke: el.selected || sourceNodeSelected ? 'var(--secondary)' : undefined, stroke: el.selected || sourceNodeSelected ? 'var(--secondary)' : '',
} }
}, },
}, },