diff --git a/packages/varlet-ui/src/progress/Progress.vue b/packages/varlet-ui/src/progress/Progress.vue index 1ec960a43b1..5da604bf09a 100644 --- a/packages/varlet-ui/src/progress/Progress.vue +++ b/packages/varlet-ui/src/progress/Progress.vue @@ -149,10 +149,10 @@ export default defineComponent({ circleProps, progressColor, linearGradientProgress, - isPlainObject, n, classes, toSizeUnit, + isPlainObject, } }, }) diff --git a/packages/varlet-ui/src/progress/docs/en-US.md b/packages/varlet-ui/src/progress/docs/en-US.md index d0cd532eddf..06b86ad5cf2 100644 --- a/packages/varlet-ui/src/progress/docs/en-US.md +++ b/packages/varlet-ui/src/progress/docs/en-US.md @@ -119,7 +119,7 @@ Enable indeterminate animation through the `indeterminate` attribute when loadin | `type` | Progress type, Can be set to `default` `primary` `info` `success` `warning` `danger` | _string_ | `primary` | | `value` | Completion value | _string \| number_ | `0` | | `line-width` | Width of the progress bar | _string \| number_ | `4` | -| `color` | Color of the progress bar (The circular progress bar sets the gradient color, please use object) | _string \| object_ | `-` | +| `color` | Color of the progress bar (The circular progress bar sets the gradient color, please use object. Gradient is the same as svg's linearGradient element) | _string \| object_ | `-` | | `track-color` | Color of the progress track | _string_ | `#d8d8d8` | | `label` | Whether the label is visible or not | _boolean_ | `false` | | `label-class` | Custom label class name | _string_ | `-` | diff --git a/packages/varlet-ui/src/progress/docs/zh-CN.md b/packages/varlet-ui/src/progress/docs/zh-CN.md index ba6a0ab294f..e62290a8c58 100644 --- a/packages/varlet-ui/src/progress/docs/zh-CN.md +++ b/packages/varlet-ui/src/progress/docs/zh-CN.md @@ -119,7 +119,7 @@ onUnmounted(() => { | `type` | 类型,可选值为 `default` `primary` `info` `success` `warning` `danger` | _string_ | `primary` | | `value` | `progress` 的进度 | _string \| number_ | `0` | | `line-width` | `progress` 的线宽 | _string \| number_ | `4` | -| `color` | `progress` 的颜色 (环形进度条设置渐变色请使用object) | _string \| object_ | `-` | +| `color` | `progress` 的颜色 (环形进度条设置渐变色请使用object, 渐变同svg的linearGradient元素) | _string \| object_ | `-` | | `track-color` | `progress` 轨道的颜色 | _string_ | `#d8d8d8` | | `label` | 是否显示 `label` | _boolean_ | `false` | | `label-class` | 自定义 `label` 的类名 | _string_ | `-` |