Skip to content

Commit 5bc8307

Browse files
authored
docs: translate input (#1682)
2 parents a3a3707 + 93daacc commit 5bc8307

File tree

1 file changed

+2
-2
lines changed
  • src/content/reference/react-dom/components

1 file changed

+2
-2
lines changed

src/content/reference/react-dom/components/input.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ title: "<input>"
3232

3333
`<input>` 支持所有 [常见的元素属性](/reference/react-dom/components/common#props)
3434

35-
- [`formAction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formaction): A string or function. Overrides the parent `<form action>` for `type="submit"` and `type="image"`. When a URL is passed to `action` the form will behave like a standard HTML form. When a function is passed to `formAction` the function will handle the form submission. See [`<form action>`](/reference/react-dom/components/form#props).
35+
[`formAction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formaction): 字符串或函数。设置了 `type="submit"` `type="image"` 属性的 `input` 标签,会覆盖父表单对应属性 `<form action>`。当向 `formAction` 传递 URL 时,表单会表现为标准 HTML 表单;当传递函数时,该函数将处理表单提交。详见 [`<form action>`](/reference/react-dom/components/form#props)
3636

37-
You can [make an input controlled](#controlling-an-input-with-a-state-variable) by passing one of these props:
37+
你可以通过传递以下属性之一来[使输入框成为受控组件](#controlling-an-input-with-a-state-variable)
3838

3939
* `checked`:布尔值,控制复选框或单选按钮是否被选中。
4040
* `value`:字符串,控制文本框的输入文本(如果是单选按钮,则为其表单数据)。

0 commit comments

Comments
 (0)