(Translated by https://www.hiragana.jp/)
GitHub - simaQ/progress: Created with CodeSandbox
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