From aa178f50e2ff74ccbf870da93dd80d4b9d308b19 Mon Sep 17 00:00:00 2001 From: 100gle Date: Thu, 9 Nov 2023 10:15:39 +0800 Subject: [PATCH] i18n(zh-cn): update `core-concepts/astro-components.mdx` --- src/content/docs/zh-cn/core-concepts/astro-components.mdx | 4 ++++ 1 file changed, 4 insertions(+) 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 框架组件中需要这个功能,最好在框架本身中生成这些动态插槽。 +::: + ### 插槽回退内容 插槽还可以渲染**回退内容**。当没有匹配的子元素传递给插槽时,`` 元素将呈现其自己的占位符子元素。