Skip to content

Commit 53de047

Browse files
YucohnyXleine
andauthored
docs(cn): translate reference/react-dom/components/progress into Chinese (#1195)
Co-authored-by: Xleine <[email protected]>
1 parent 9b9bb06 commit 53de047

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "<progress>"
44

55
<Intro>
66

7-
The [built-in browser `<progress>` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) lets you render a progress indicator.
7+
[浏览器内置的 `<progress>` 组件](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress) 允许你渲染一个进度指示器。
88

99
```js
1010
<progress value={0.5} />
@@ -16,36 +16,36 @@ The [built-in browser `<progress>` component](https://developer.mozilla.org/en-U
1616

1717
---
1818

19-
## Reference {/*reference*/}
19+
## 参考 {/*reference*/}
2020

2121
### `<progress>` {/*progress*/}
2222

23-
To display a progress indicator, render the [built-in browser `<progress>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) component.
23+
使用 [浏览器内置的 `<progress>` 组件](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress) 渲染一个进度指示器。
2424

2525
```js
2626
<progress value={0.5} />
2727
```
2828

29-
[See more examples below.](#usage)
29+
[参见下面更多示例](#usage)
3030

31-
#### Props {/*props*/}
31+
#### 参数 {/*props*/}
3232

33-
`<progress>` supports all [common element props.](/reference/react-dom/components/common#props)
33+
`<progress>` 支持所有 [常见的元素属性](/reference/react-dom/components/common#props)
3434

35-
Additionally, `<progress>` supports these props:
35+
除此之外,`<progress>` 还支持以下属性:
3636

37-
* [`max`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-max): A number. Specifies the maximum `value`. Defaults to `1`.
38-
* [`value`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-value): A number between `0` and `max`, or `null` for indeterminate progress. Specifies how much was done.
37+
- [`max`](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress#attr-max):一个数字,表示指定的最大 `value`。默认值为 `1`
38+
- [`value`](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress#attr-value):一个介于 `0` `max` 之间的数字。如果不确定具体的进度,那么该值可以为 `null``value` 表示完成了多少进度。
3939

4040
---
4141

42-
## Usage {/*usage*/}
42+
## 用法 {/*usage*/}
4343

44-
### Controlling a progress indicator {/*controlling-a-progress-indicator*/}
44+
### 控制进度指示器 {/*controlling-a-progress-indicator*/}
4545

46-
To display a progress indicator, render a `<progress>` component. You can pass a number `value` between `0` and the `max` value you specify. If you don't pass a `max` value, it will assumed to be `1` by default.
46+
使用 `<progress>` 组件渲染进度指示器。你可以传递一个介于 `0` 和指定的 `max` 值之间的数字 `value`。如果不传递 `max` 参数,那么 `max` 默认值为 `1`
4747

48-
If the operation is not ongoing, pass `value={null}` to put the progress indicator into an indeterminate state.
48+
如果相关操作未持续进行,请传递 `value={null}` 将进度指示器设置为不确定状态。
4949

5050
<Sandpack>
5151

0 commit comments

Comments
 (0)