驗證

為了驗證節點之間的新連線,您可以使用 isValidConnection prop,如本範例所示。

<script lang="ts">
const data: string = "world";
</script>

<h1>Hello {data}</h1>

<style>
h1 {
  font-size: 1.5rem;
}
</style>
唯讀