Skip to content

Commit

Permalink
docs(progress): 完善了进度条progressStyle的回调方法描述文档
Browse files Browse the repository at this point in the history
  • Loading branch information
yangtao.yangtao committed Sep 19, 2021
1 parent 5678aa4 commit f4e4237
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
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

0 comments on commit f4e4237

Please sign in to comment.