Skip to content

Commit 306a20a

Browse files
committed
docs(components/progress): add Progress component documentation and preview image
1 parent 51da104 commit 306a20a

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

docs/en/components/progress.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Progress
3+
order: 9
4+
---
5+
6+
# Progress
7+
8+
```rust
9+
pub fn progress(args: impl Into<ProgressArgs>)
10+
```
11+
12+
Displays a progress bar indicating the completion progress of a task. This component is almost identical to the `slider` component but is not interactive.
13+
14+
## Arguments
15+
16+
- `args: ProgressArgs`
17+
This argument configures the style of the `progress` component. Use `ProgressArgsBuilder` to construct it.
18+
19+
## Preview
20+
21+
![progress](/progress_example.png)

docs/public/progress_example.png

770 Bytes
Loading

docs/zhHans/components/progress.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Progress 组件
3+
order: 9
4+
---
5+
6+
# Progress
7+
8+
```rust
9+
pub fn progress(args: impl Into<ProgressArgs>)
10+
```
11+
12+
显示一个进度条,表示某个任务的完成进度。此组件与 `slider` 组件几乎一致,但不可交互。
13+
14+
## 参数
15+
16+
- `args: ProgressArgs`
17+
该参数用于配置 `progress` 组件的样式。使用 `ProgressArgsBuilder` 来构建它。
18+
19+
## 预览
20+
21+
![progress](/progress_example.png)

0 commit comments

Comments
 (0)