Skip to content

Commit ba12b2c

Browse files
i18n(zh-cn): Update astro-actions.mdx (withastro#12476)
Co-authored-by: Yan <[email protected]>
1 parent cdc9fb6 commit ba12b2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/zh-cn/reference/modules/astro-actions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const server = {
7575

7676
##### `accept: 'form'` 一起使用
7777

78-
如果你的 action 接受表单输入,请使用 `z.object()` 验证器将表单数据自动解析为类型化对象。表单数据字段支持以下验证器
78+
如果你的 action 接受表单输入,请使用 `z.object()` 验证器将表单数据自动解析为类型化对象。所有 Zod 验证器均支持表单数据字段(例如 `z.coerce.date()` )。为方便你验证以下类型的字段输入,Astro 在底层还提供了特殊处理
7979

8080
- 使用 `z.number()` 验证类型为 `number` 的输入
8181
- 使用 `z.coerce.boolean()` 验证类型为 `checkbox` 的输入

0 commit comments

Comments
 (0)