fix(progress): indicatorTextColor (#4185)

* fix: 当指标位置inside时,颜色不生效

* chore: changelog

* chore: 删除版本号

* fix: indicator-text-color 不生效
This commit is contained in:
sunny9528 2022-12-18 13:04:12 +08:00 committed by GitHub
parent e63e4187d0
commit 0c7903aba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -12,6 +12,7 @@
### Fixes
- 修复 `indicator-placement``inside` 时,`indicator-text-color` 不生效的问题
- 修复 `n-image` 操作预览图片时报错,关闭 [#4157](https://github.com/tusen-ai/naive-ui/issues/4157)
- 修复 `n-tree``cannot access 'mergedFilterRef' before initialization`报错,关闭 [#4134](https://github.com/tusen-ai/naive-ui/issues/4134)
- 修复 `n-menu` 无法通过 `dropdown-props` 覆盖子菜单 dropdown 的 `trigger`,关闭 [#4147](https://github.com/tusen-ai/naive-ui/issues/4147)

View File

@ -134,7 +134,12 @@ export default defineComponent({
}}
>
{indicatorPlacement === 'inside' ? (
<div class={`${clsPrefix}-progress-graph-line-indicator`}>
<div
class={`${clsPrefix}-progress-graph-line-indicator`}
style={{
color: indicatorTextColor
}}
>
{percentage}
{unit}
</div>