diff --git a/packages/progress/README.md b/packages/progress/README.md index 2600a56d..196a6a9f 100644 --- a/packages/progress/README.md +++ b/packages/progress/README.md @@ -69,7 +69,8 @@ | stroke-width | 进度条粗细,默认单位为`px` | *string \| number* | `4px` | - | | show-pivot | 是否显示进度文字 | *boolean* | `true` | - | | color | 进度条颜色 | *string* | `#1989fa` | - | -| text-color | 进度条文字颜色 | *string* | `#fff` | - | +| text-color | 进度文字颜色 | *string* | `#fff` | - | +| track-color | 轨道颜色 | *string* | `#e5e5e5` | 1.0.0 | | pivot-text | 文字显示 | *string* | 百分比文字 | - | | pivot-color | 文字背景色 | *string* | 与进度条颜色一致 | - | diff --git a/packages/progress/index.ts b/packages/progress/index.ts index 672bd8cd..5f9ce1c2 100644 --- a/packages/progress/index.ts +++ b/packages/progress/index.ts @@ -8,6 +8,7 @@ VantComponent({ percentage: Number, pivotText: String, pivotColor: String, + trackColor: String, showPivot: { type: Boolean, value: true diff --git a/packages/progress/index.wxml b/packages/progress/index.wxml index ee847edf..5d27517d 100644 --- a/packages/progress/index.wxml +++ b/packages/progress/index.wxml @@ -1,6 +1,9 @@ - +