我刚刚启动了一个基于 Angular Web 应用程序,其中有一个圆形进度条,我在本节中使用了 "ng-circle-progress"
。我需要根据设计将 "%"
单位更改为 "point"
,但在整个插件中找不到任何选项来实现它。请检查下面给出的链接和代码并找到解决方案。
“ng-circle-progress”的链接 - https://www.npmjs.com/package/ng-circle-progress
代码-----
<circle-progress
[percent]="60"
[titleFontSize]="40"
[showSubtitle]="false"
[showUnits]="false"
[outerStrokeColor]="'#707070'"
[innerStrokeColor]="'#D4D4D4'"
[radius]="100"
[backgroundPadding]="7"
[outerStrokeWidth]="5"
[space]="-5"
[innerStrokeWidth]="5"
[animation]="true"
[animationDuration]="1000">
</circle-progress>
最佳答案
正如我在文档中看到的那样,通过保持 [showSubtitle]="false"[showUnits]="false"
并通过添加带有回调函数的其他选项subtitleFormat
可以实现您的要求。
对于subtitleFormat
回调实现你可以引用here
谢谢
关于css - 如何将angular-7中的 "%"中的 "Point"更改为 "ng-circle-progress"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54478654/