feat(Progress): add stroke-width prop (#4397)

This commit is contained in:
neverland
2019-09-08 16:49:17 +08:00
committed by GitHub
parent 88433a9c61
commit 7dbfbb9bcd
6 changed files with 45 additions and 20 deletions
+6
View File
@@ -19,6 +19,11 @@ Use 'percentage' prop to set current progress
<van-progress :percentage="50" />
```
### Stroke Width
```html
<van-progress :percentage="50" stroke-width="8" />
```
### Inactive
@@ -60,6 +65,7 @@ Use `pivot-text` to custom textuse `color` to custom bar color
|------|------|------|------|------|
| inactive | Whether to be gray | *boolean* | `false` | - |
| percentage | Percentage | *number* | `0` | - |
| stroke-width | Stroke width | *string \| number* | `4px` | 2.2.1 |
| show-pivot | Whether to show text | *boolean* | `true` | - |
| color | Color | *string* | `#1989fa` | - |
| pivot-text | Text | *string* | percentage | - |