feat(Progress): add stroke-width prop (#4397)
This commit is contained in:
@@ -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` | - |
|
||||
|
||||
Reference in New Issue
Block a user