Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#2486): 完善了进度条progressStyle的回调方法描述文档 #2863

Merged
merged 1 commit into from
Sep 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions docs/api/plots/progress.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,31 @@ order: 20

<description>**optional** _number_ _default:_ `0.5`</description>

条形图宽度占比 [0-1]。
进度条宽度占比 [0-1]。

#### progressStyle

<description>**optional** _StyleAttr | Function_</description>

柱子样式配置
进度条样式配置

`markdown:docs/common/shape-style.en.md`

使用回调方法获得样式配置

```ts
({ percent, type }) => {
if (type === 'current') {
return {
// 进度条百分比部分样式
};
}
return {
// 进度条背景部分样式
};
};
```

`markdown:docs/common/color.en.md`

### Plot Component
Expand Down
21 changes: 18 additions & 3 deletions docs/api/plots/progress.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ order: 20

### 数据映射

#### percent
#### percent

<description>**required** _number_</description>

Expand All @@ -21,16 +21,31 @@ order: 20

<description>**optional** _number_ _default:_ `0.5`</description>

条形图宽度占比 [0-1]。
进度条宽度占比 [0-1]。

#### progressStyle

<description>**optional** _StyleAttr | Function_</description>

柱子样式配置
进度条样式配置

`markdown:docs/common/shape-style.zh.md`

使用回调方法获得样式配置

```ts
({ percent, type }) => {
if (type === 'current') {
return {
// 进度条百分比部分样式
};
}
return {
// 进度条背景部分样式
};
};
```

`markdown:docs/common/color.zh.md`

### 图表组件
Expand Down