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
+11
View File
@@ -19,8 +19,18 @@ Vue.use(Progress);
<van-progress :percentage="50" />
```
### 线条粗细
通过`stroke-width`可以设置进度条的粗细
```html
<van-progress :percentage="50" stroke-width="8" />
```
### 置灰
设置`inactive`属性后进度条将置灰
```html
<van-progress inactive :percentage="50" />
```
@@ -58,6 +68,7 @@ Vue.use(Progress);
|------|------|------|------|------|
| inactive | 是否置灰 | *boolean* | `false` | - |
| percentage | 进度百分比 | *number* | `0` | - |
| stroke-width | 进度条粗细,默认单位为`px` | *string \| number* | `4px` | 2.2.1 |
| show-pivot | 是否显示进度文字 | *boolean* | `true` | - |
| color | 进度条颜色 | *string* | `#1989fa` | - |
| text-color | 进度条文字颜色 | *string* | `#fff` | - |