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

✨ [Feature]: Progress 进度条 :format需要带参数的获取文字的方法 #2633

Open
KyLenMou opened this issue Dec 10, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request (功能增强)

Comments

@KyLenMou
Copy link

What problem does this feature solve

我在使用v-for来渲染多个进度条的时候需要根据当前数据来确定进度条的文字,而:format只能传不带参数的获取文字的方法

<tiny-progress
  :stroke-width="18"
  :percentage="getProgressPercentage(submission.verdict)"
  :color="progressColors"
  :text-inside="true"
  :show-text="true"
  :format="getProgressText(submission.verdict)"
/>

比如这里,就无法渲染自定义文字了

What does the proposed API look like

希望format这个props的方法允许传参数

What is your project name

KOJ

@kagol kagol added the enhancement New feature or request (功能增强) label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request (功能增强)
Projects
None yet
Development

No branches or pull requests

3 participants