範例互動驗證驗證為了驗證節點之間的新連線,您可以使用 isValidConnection prop,如本範例所示。index.htmlApp.svelte<script lang="ts"> const data: string = "world"; </script> <h1>Hello {data}</h1> <style> h1 { font-size: 1.5rem; } </style>唯讀在 Stackblitz 中開啟在 Codesandbox 中開啟功能概述