Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增一个进度条组件 #805

Open
rdkmaster opened this issue Nov 14, 2018 · 0 comments
Open

新增一个进度条组件 #805

rdkmaster opened this issue Nov 14, 2018 · 0 comments

Comments

@rdkmaster
Copy link
Owner

rdkmaster commented Nov 14, 2018

用法

<jigsaw-progress-bar [progress]="progress"
                     max="100"
                     min="0"
                     labelFormatter="$p %"
                     labelPlacement="center"
                     showScale="true"
                     (complete)="onComplete()">
</jigsaw-progress-bar>

输入

  • progress: number 当前的进度值,需要根据min / max 换算成比例,取小数点后1位。换算出来的比例取值范围恒为 [0 ~ 100]
  • min: number 最进度小值,默认是0
  • max: number 最大进度值,默认是100
  • labelFormatter: string 文本格式,默认值是 "$p %",其中$p是一个占位符,表示当前的进度值,清空则表示不显示文本
  • labelPlacement: "left"|"right"|"top"|"bottom"|"center",默认值是"center"
  • showScale: boolean 是否显示下方的标尺

输出

  • complete: EventEmitter<void> 当当前的进度值大于等于100%的时候,发送此事件。

参考样式

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant