From bde00436c72b3db234dd4f9901a8b0e50c815724 Mon Sep 17 00:00:00 2001 From: Yucohny Date: Tue, 20 Jun 2023 00:43:59 +0800 Subject: [PATCH 1/8] docs(cn): reference/react-dom/components/progress --- .../react-dom/components/progress.md | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/content/reference/react-dom/components/progress.md b/src/content/reference/react-dom/components/progress.md index b783a102db..522db872de 100644 --- a/src/content/reference/react-dom/components/progress.md +++ b/src/content/reference/react-dom/components/progress.md @@ -4,7 +4,7 @@ title: "" -The [built-in browser `` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) lets you render a progress indicator. +[内置的浏览器 `` 组件](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) 允许你渲染一个进度指示器。 ```js @@ -16,36 +16,36 @@ The [built-in browser `` component](https://developer.mozilla.org/en-U --- -## Reference {/*reference*/} +## 参考 {/*reference*/} ### `` {/*progress*/} -To display a progress indicator, render the [built-in browser ``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) component. +使用 [内置的浏览器 `` 组件](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) 渲染一个进度指示器。 ```js ``` -[See more examples below.](#usage) +[参见下面的例子](#usage)。 -#### Props {/*props*/} +#### 参数 {/*props*/} -`` supports all [common element props.](/reference/react-dom/components/common#props) +`` 支持所有 [常见的元素属性](/reference/react-dom/components/common#props)。 -Additionally, `` supports these props: +此外之外,`` 还支持以下属性: -* [`max`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-max): A number. Specifies the maximum `value`. Defaults to `1`. -* [`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. +- [`max`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-max):一个数字,表示指定的最大 `value`。默认值为 `1`。 +- [`value`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-value):一个介于 `0` 至 `max` 之间的数字。如果不确定具体的进度,那么该值可以为 `null`。`value` 表示完成了多少进度。 --- -## Usage {/*usage*/} +## 用法 {/*usage*/} -### Controlling a progress indicator {/*controlling-a-progress-indicator*/} +### 控制进度指示器 {/*controlling-a-progress-indicator*/} -To display a progress indicator, render a `` 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. +使用 `` 组件渲染进度指示器。你可以传递一个介于 `0` 和指定的 `max` 值之间的数字 `value`。如果不传递 `max` 参数,那么 `max` 默认值为 `1`。 -If the operation is not ongoing, pass `value={null}` to put the progress indicator into an indeterminate state. +如果相关操作未持续进行,请传递 `value={null}` 将进度指示器设置为不确定状态。 From 345e0bf86a2c5c6a35946415471620de3edff01f Mon Sep 17 00:00:00 2001 From: Yucohny <79147654+Yucohny@users.noreply.github.com> Date: Tue, 20 Jun 2023 00:46:30 +0800 Subject: [PATCH 2/8] docs(cn): review and update --- src/content/reference/react-dom/components/progress.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/reference/react-dom/components/progress.md b/src/content/reference/react-dom/components/progress.md index 522db872de..827b33ef24 100644 --- a/src/content/reference/react-dom/components/progress.md +++ b/src/content/reference/react-dom/components/progress.md @@ -4,7 +4,7 @@ title: "" -[内置的浏览器 `` 组件](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) 允许你渲染一个进度指示器。 +[浏览器的内置 `` 组件](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) 允许你渲染一个进度指示器。 ```js @@ -20,7 +20,7 @@ title: "" ### `` {/*progress*/} -使用 [内置的浏览器 `` 组件](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) 渲染一个进度指示器。 +使用 [浏览器的内置 `` 组件](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) 渲染一个进度指示器。 ```js @@ -32,7 +32,7 @@ title: "" `` 支持所有 [常见的元素属性](/reference/react-dom/components/common#props)。 -此外之外,`` 还支持以下属性: +除此之外,`` 还支持以下属性: - [`max`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-max):一个数字,表示指定的最大 `value`。默认值为 `1`。 - [`value`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-value):一个介于 `0` 至 `max` 之间的数字。如果不确定具体的进度,那么该值可以为 `null`。`value` 表示完成了多少进度。 From 35206eb90cfd41c4f1ce89f525d30b2dbfe4ac43 Mon Sep 17 00:00:00 2001 From: Yucohny <79147654+Yucohny@users.noreply.github.com> Date: Tue, 20 Jun 2023 00:55:08 +0800 Subject: [PATCH 3/8] docs(cn): review and update --- src/content/reference/react-dom/components/progress.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react-dom/components/progress.md b/src/content/reference/react-dom/components/progress.md index 827b33ef24..e3275237b3 100644 --- a/src/content/reference/react-dom/components/progress.md +++ b/src/content/reference/react-dom/components/progress.md @@ -26,7 +26,7 @@ title: "" ``` -[参见下面的例子](#usage)。 +[参见下面更多示例](#usage)。 #### 参数 {/*props*/} From 54c908abab34e4ce2d2b7e2176e353891867d877 Mon Sep 17 00:00:00 2001 From: Yucohny <79147654+Yucohny@users.noreply.github.com> Date: Wed, 21 Jun 2023 10:03:45 +0800 Subject: [PATCH 4/8] docs(cn): change links --- src/content/reference/react-dom/components/progress.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/reference/react-dom/components/progress.md b/src/content/reference/react-dom/components/progress.md index e3275237b3..7dad44113a 100644 --- a/src/content/reference/react-dom/components/progress.md +++ b/src/content/reference/react-dom/components/progress.md @@ -4,7 +4,7 @@ title: "" -[浏览器的内置 `` 组件](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) 允许你渲染一个进度指示器。 +[浏览器的内置 `` 组件](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress) 允许你渲染一个进度指示器。 ```js @@ -20,7 +20,7 @@ title: "" ### `` {/*progress*/} -使用 [浏览器的内置 `` 组件](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) 渲染一个进度指示器。 +使用 [浏览器的内置 `` 组件](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress) 渲染一个进度指示器。 ```js @@ -34,8 +34,8 @@ title: "" 除此之外,`` 还支持以下属性: -- [`max`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-max):一个数字,表示指定的最大 `value`。默认值为 `1`。 -- [`value`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-value):一个介于 `0` 至 `max` 之间的数字。如果不确定具体的进度,那么该值可以为 `null`。`value` 表示完成了多少进度。 +- [`max`](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress#attr-max):一个数字,表示指定的最大 `value`。默认值为 `1`。 +- [`value`](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress#attr-value):一个介于 `0` 至 `max` 之间的数字。如果不确定具体的进度,那么该值可以为 `null`。`value` 表示完成了多少进度。 --- From 1148d35a9c66cae2ec46b418445595bd9dae3329 Mon Sep 17 00:00:00 2001 From: Xleine <919143384@qq.com> Date: Fri, 23 Jun 2023 15:02:34 +0800 Subject: [PATCH 5/8] Update src/content/reference/react-dom/components/progress.md --- src/content/reference/react-dom/components/progress.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react-dom/components/progress.md b/src/content/reference/react-dom/components/progress.md index 7dad44113a..9e6c15925e 100644 --- a/src/content/reference/react-dom/components/progress.md +++ b/src/content/reference/react-dom/components/progress.md @@ -20,7 +20,7 @@ title: "" ### `` {/*progress*/} -使用 [浏览器的内置 `` 组件](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress) 渲染一个进度指示器。 +使用 [浏览器内置的 `` 组件](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress) 渲染一个进度指示器。 ```js From 6e0d0fc3e4587cb80d4af1db3ea429bf71bcb6a1 Mon Sep 17 00:00:00 2001 From: Xleine <919143384@qq.com> Date: Fri, 23 Jun 2023 15:03:00 +0800 Subject: [PATCH 6/8] Update src/content/reference/react-dom/components/progress.md --- src/content/reference/react-dom/components/progress.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react-dom/components/progress.md b/src/content/reference/react-dom/components/progress.md index 9e6c15925e..6386319696 100644 --- a/src/content/reference/react-dom/components/progress.md +++ b/src/content/reference/react-dom/components/progress.md @@ -4,7 +4,7 @@ title: "" -[浏览器的内置 `` 组件](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress) 允许你渲染一个进度指示器。 +[浏览器内置的 `` 组件](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress) 允许你渲染一个进度指示器。 ```js From 69bf4dfb5356636ea96ffd0fc23bfb6876e000f5 Mon Sep 17 00:00:00 2001 From: Yucohny <79147654+Yucohny@users.noreply.github.com> Date: Fri, 23 Jun 2023 18:22:22 +0800 Subject: [PATCH 7/8] Update src/content/reference/react-dom/components/progress.md Co-authored-by: Xleine <919143384@qq.com> --- src/content/reference/react-dom/components/progress.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react-dom/components/progress.md b/src/content/reference/react-dom/components/progress.md index 6386319696..3e2c0d9208 100644 --- a/src/content/reference/react-dom/components/progress.md +++ b/src/content/reference/react-dom/components/progress.md @@ -35,7 +35,7 @@ title: "" 除此之外,`` 还支持以下属性: - [`max`](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress#attr-max):一个数字,表示指定的最大 `value`。默认值为 `1`。 -- [`value`](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress#attr-value):一个介于 `0` 至 `max` 之间的数字。如果不确定具体的进度,那么该值可以为 `null`。`value` 表示完成了多少进度。 +- [`value`](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress#attr-value):一个介于 `0` 至 `max` 之间的数字。如果不确定具体的进度,那么该值可以为 `null`。`value` 表示完成了多少进度。 --- From fa129e098be9bfe157e9013a678fee710f26a04c Mon Sep 17 00:00:00 2001 From: Yucohny <79147654+Yucohny@users.noreply.github.com> Date: Fri, 23 Jun 2023 18:22:28 +0800 Subject: [PATCH 8/8] Update src/content/reference/react-dom/components/progress.md Co-authored-by: Xleine <919143384@qq.com> --- src/content/reference/react-dom/components/progress.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react-dom/components/progress.md b/src/content/reference/react-dom/components/progress.md index 3e2c0d9208..56c1bfc855 100644 --- a/src/content/reference/react-dom/components/progress.md +++ b/src/content/reference/react-dom/components/progress.md @@ -34,7 +34,7 @@ title: "" 除此之外,`` 还支持以下属性: -- [`max`](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress#attr-max):一个数字,表示指定的最大 `value`。默认值为 `1`。 +- [`max`](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress#attr-max):一个数字,表示指定的最大 `value`。默认值为 `1`。 - [`value`](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/progress#attr-value):一个介于 `0` 至 `max` 之间的数字。如果不确定具体的进度,那么该值可以为 `null`。`value` 表示完成了多少进度。 ---