# progress

> 基础库 1.0.0 开始支持，低版本需做[兼容处理](1003706)。

> __微信 Windows 版__：支持
> 
> __微信 Mac 版__：支持

渲染框架支持情况：WebView

## 功能描述

进度条。组件属性的长度单位默认为px，[2.4.0](1003706)起支持传入单位(rpx/px)。

## 属性说明

| 属性 | 类型 | 默认值 | 必填 | 说明 | 最低版本 |
| ---- | ---- | ------ | -------- | ---- | -------- |
| percent | number |  | 否 | 百分比0~100 | [1.0.0](1003706) |
| show-info | boolean | false | 否 | 在进度条右侧显示百分比 | [1.0.0](1003706) |
| border-radius | number/string | 0 | 否 | 圆角大小 | [2.3.1](1003706) |
| font-size | number/string | 16 | 否 | 右侧百分比字体大小 | [2.3.1](1003706) |
| stroke-width | number/string | 6 | 否 | 进度条线的宽度 | [1.0.0](1003706) |
| color | string | #09BB07 | 否 | 进度条颜色（请使用activeColor） | [1.0.0](1003706) |
| activeColor | string | #09BB07 | 否 | 已选择的进度条的颜色 | [1.0.0](1003706) |
| backgroundColor | string | #EBEBEB | 否 | 未选择的进度条的颜色 | [1.0.0](1003706) |
| active | boolean | false | 否 | 进度条从左往右的动画 | [1.0.0](1003706) |
| active-mode | string | backwards | 否 | backwards: 动画从头播；forwards：动画从上次结束点接着播 | [1.7.0](1003706) |
| duration | number | 30 | 否 | 进度增加1%所需毫秒数 | [2.8.2](1003706) |
| bind:activeend | eventhandle |  | 否 | 动画完成事件 | [2.4.1](1003706) |

## 示例代码

[在开发者工具中预览效果](https://developers.weixin.qq.com/s/Oga4Hcmj6cYS)
