# CricleProgress 进度条
### 介绍
展示操作或任务的当前进度。
### 安装
``` javascript
import { createApp } from 'vue';
//vue
import { CirecleProgress } from '@nutui/nutui';
//taro
import { CirecleProgress } from '@nutui/nutui-taro';
const app = createApp();
app.use(CirecleProgress);
```
### 基础用法
```html
```
### 环形进度条自定义样式
```html
```
### 环形进度条自定义内容
```html
自定义
```
### 动态改变环形进度条的进度
```html
减少
增加
```
```javascript
setup() {
const progressOption = reactive({
radius: 50,
strokeOutWidth: 10,
backColor: '#d9d9d9',
progressColor: 'red'
});
const percent = ref(50);
const strokeInnerWidth = ref(10);
const isAuto = ref(true);
const setAddVal = () => {
strokeInnerWidth.value = 10;
if (percent.value >= 100) {
return;
}
percent.value += 10;
};
const setReduceVal = () => {
if (percent.value - 10 <= 0) {
strokeInnerWidth.value = 0;
percent.value = 0;
return;
}
percent.value -= 10;
};
return {
progressOption,
isAuto,
setAddVal,
setReduceVal,
percent
};
}
```
## Prop
| 字段 | 说明 | 类型 | 默认值
|----- | ----- | ----- | -----
| progress | 百分比 | Number,String | 必传项,无默认值
| stroke-inner-width | 圆弧的宽度 | Number,String | 10
| is-auto | 是否自定义内容显示 | Boolean | false
| progress-option | 外圆相关参数对象,其中包括半径,宽度,背景颜色,进度色值 | Object | {radius: 50,strokeOutWidth: 10, backColor: '#d9d9d9',progressColor: 'red'}