## Progress 进度条 ### 使用指南 ``` javascript import { Progress } from 'vant'; Vue.use(Progress); ``` ### 代码演示 #### 基础用法 进度条默认为蓝色,使用`percentage`属性来设置当前进度 ```html ``` #### 置灰 ```html ``` #### 样式定制 可以使用`pivot-text`属性自定义文字,`color`属性自定义进度条颜色 ```html ``` ### API | 参数 | 说明 | 类型 | 默认值 | 版本 | |------|------|------|------|------| | inactive | 是否置灰 | `Boolean` | `false` | - | | percentage | 进度百分比 | `Number` | `0` | - | | show-pivot | 是否显示进度文字 | `Boolean` | `true` | - | | color | 进度条颜色 | `String` | `#1989fa` | - | | text-color | 进度条文字颜色 | `String` | `#fff` | - | | pivot-text | 文字显示 | `String` | 百分比文字 | - | | pivot-color | 文字背景色 | `String` | 与进度条颜色一致 | - |