| | |
| | | let type = config.showType || 'line' |
| | | |
| | | if (type === 'line') { |
| | | return <Progress percent={value} type="line" strokeWidth={config.strokeWidth || 8} strokeColor={config.color} showInfo={config.showInfo === 'true'}/> |
| | | return <Progress percent={value} type="line" className={config.strokeLinecap || ''} strokeWidth={config.strokeWidth || 8} strokeColor={config.color} showInfo={config.showInfo === 'true'}/> |
| | | } |
| | | |
| | | let width = config.outlineWidth || 0 |
| | |
| | | |
| | | return ( |
| | | <div ref={(ref) => this.progress = ref } style={{textAlign: config.textAlign || 'left'}}> |
| | | <Progress percent={value} width={width} type={type} strokeWidth={config.strokeWidth || 8} strokeColor={config.color} showInfo={config.showInfo === 'true'}/> |
| | | <Progress percent={value} width={width} type={type} strokeLinecap={config.strokeLinecap || 'round'} strokeWidth={config.strokeWidth || 8} strokeColor={config.color} showInfo={config.showInfo === 'true'}/> |
| | | </div> |
| | | ) |
| | | } |