Skip to content

Commit bb547d2

Browse files
committed
i18n(zh-cn): Update directives-reference.mdx
1 parent ea7aa4d commit bb547d2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/content/docs/zh-cn/reference/directives-reference.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: 模板指令参考
33
---
44

55
import Since from '~/components/Since.astro';
6+
import ReadMore from '~/components/ReadMore.astro'
67

78
**模板指令**是特殊的 HTML 属性,它可以在任一 Astro 组件模板(`.astro` 文件)中使用,也可以在 `.mdx` 文件中使用。
89

@@ -208,7 +209,7 @@ import api from '../db/api.js';
208209

209210
你可以在组件中同时使用 `<style>``<style is:global>`,创建一些全局样式规则,同时仍对大部分组件 CSS 进行作用域控制。
210211

211-
📚 有关全局样式工作的更多细节,请参见[样式 & CSS](/zh-cn/guides/styling/#全局样式)页面。
212+
<ReadMore>有关全局样式工作的更多细节,请参见 [样式 & CSS](/zh-cn/guides/styling/#全局样式) 页面。</ReadMore>
212213

213214
```astro
214215
<style is:global>
@@ -248,7 +249,7 @@ import api from '../db/api.js';
248249
</script>
249250
```
250251

251-
📚 查看[客户端脚本](/zh-cn/guides/client-side-scripts/)如何在 Astro 组件中工作。
252+
<ReadMore>查看 [客户端脚本](/zh-cn/guides/client-side-scripts/) 如何在 Astro 组件中工作。</ReadMore>
252253

253254
### `define:vars`
254255

0 commit comments

Comments
 (0)