fix examples
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
<script lang="ts">
|
||||
import { NodeToolbar, type NodeProps, Handle, Position } from '@xyflow/svelte';
|
||||
import {
|
||||
NodeToolbar,
|
||||
type NodeProps,
|
||||
type Node,
|
||||
Handle,
|
||||
Position,
|
||||
type Align
|
||||
} from '@xyflow/svelte';
|
||||
|
||||
type $$Props = NodeProps;
|
||||
|
||||
interface Props {
|
||||
data: $$Props['data'];
|
||||
}
|
||||
|
||||
let { data }: Props = $props();
|
||||
let {
|
||||
data
|
||||
}: NodeProps<
|
||||
Node<{ label: string; toolbarPosition: Position; toolbarAlign: Align; toolbarVisible: boolean }>
|
||||
> = $props();
|
||||
</script>
|
||||
|
||||
<NodeToolbar
|
||||
|
||||
Reference in New Issue
Block a user