diff --git a/src/content/docs/zh-cn/core-concepts/astro-components.mdx b/src/content/docs/zh-cn/core-concepts/astro-components.mdx index 6ee732f63fd19..f2d847ed0bb09 100644 --- a/src/content/docs/zh-cn/core-concepts/astro-components.mdx +++ b/src/content/docs/zh-cn/core-concepts/astro-components.mdx @@ -250,6 +250,10 @@ import Wrapper from '../components/Wrapper.astro'; 命名插槽页可以传递给 [UI 框架组件](/zh-cn/core-concepts/framework-components/) 的信息。 ::: +:::note +Astro 的插槽名称不能动态生成,例如在一个 map 函数中。如果 UI 框架组件中需要这个功能,最好在框架本身中生成这些动态插槽。 +::: + ### 插槽回退内容 插槽还可以渲染**回退内容**。当没有匹配的子元素传递给插槽时,`` 元素将呈现其自己的占位符子元素。