跳至内容
没有 Shadow DOM 使用 slot

没有 Shadow DOM 使用 slot

1
2
3
4
5
6
7
<svelte:options customElement={{ tag: "example", shadow: "none" }} />

<div
  {@attach (slot) => {
    slot.appendChild($host().firstElementChild!);
  }}
></div>
最后更新于