migrate examples
This commit is contained in:
@@ -3,7 +3,11 @@
|
||||
|
||||
import Flow from './Flow.svelte';
|
||||
|
||||
export let data: { flowConfig: FlowConfig };
|
||||
interface Props {
|
||||
data: { flowConfig: FlowConfig };
|
||||
}
|
||||
|
||||
let { data }: Props = $props();
|
||||
</script>
|
||||
|
||||
<SvelteFlowProvider>
|
||||
|
||||
@@ -4,7 +4,11 @@
|
||||
|
||||
import '@xyflow/svelte/dist/style.css';
|
||||
|
||||
export let flowConfig: FlowConfig;
|
||||
interface Props {
|
||||
flowConfig: FlowConfig;
|
||||
}
|
||||
|
||||
let { flowConfig }: Props = $props();
|
||||
|
||||
// Create writables here so it is easier to create test cases
|
||||
const nodes = writable(flowConfig.flowProps?.nodes);
|
||||
|
||||
Reference in New Issue
Block a user