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

progressColor这个属性可以使用渐变颜色吗? #38

Open
WangXinRuo77 opened this issue Apr 12, 2019 · 1 comment
Open

progressColor这个属性可以使用渐变颜色吗? #38

WangXinRuo77 opened this issue Apr 12, 2019 · 1 comment

Comments

@WangXinRuo77
Copy link

progressColor = "linear-gradient(#6ED1FF,#1589FC)"类似于这种渐变色,应该怎么使用

@somarlyonks
Copy link
Contributor

https://stackoverflow.com/questions/48741796/how-to-style-svg-progress-bar-with-gradients

You cannot use gradient as a color as it will be later placed inside the stroke.

The post also provided the solution. You may fork this project, complete the function and consider whether to submit a PR.

SVG的Stroke使用渐变色前需要预定义。如果你觉得有必要,你可以fork这个项目然后自己实现。

PS: You should issue in English as far as I'm concerned(我觉得你应该用英文提Issue).

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

2 participants