Teleport
此示例展示了如何在客户端和服务器端渲染中使用 <Teleport>。
Vue 3 提供了 <Teleport>
组件,允许在 DOM 中的其他位置(Vue 应用之外)渲染内容。
¥Vue 3 provides the <Teleport>
component which allows content to be rendered elsewhere in the DOM, outside of the Vue application.
此示例展示了如何在客户端和服务器端渲染中使用 <Teleport>
。
¥This example shows how to use the <Teleport>
with client-side and server-side rendering.
Loading Sandbox...