Skip to content

simaQ/progress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

progress

进度条组件。

API

参数 说明 类型 默认值
shape 形态

可选值:
'circle', 'line'
Enum 'line'
percent 所占百分比 Number 0
format 文本渲染函数

签名:
Function(percent: Number) => string
参数:
percent: {Number} 当前的进度信息
返回值:
返回文本
Function percent => ${Math.floor(percent)}%
showText 是否显示进度数值或状态图标 boolean true
textStyle 文本的样式设置 object -
strokeColor 进度条的色彩 String -
trailColor 进度条背景色 String -
strokeLineCap 进度条线段末端的属性,

可选值:
'round', 'round'
Enum 'round'
strokeWidth 进度条线的宽度,单位 px number 8

About

Created with CodeSandbox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published