瀏覽代碼

fix: remove progress strokeWidth doc when type=line

代强 1 年之前
父節點
當前提交
0939eb1a4c
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      content/feedback/progress/index-en-US.md
  2. 1 1
      content/feedback/progress/index.md

+ 1 - 1
content/feedback/progress/index-en-US.md

@@ -403,7 +403,7 @@ import { IconChevronLeft, IconChevronRight } from '@douyinfe/semi-icons';
 | stroke | Fill color of progress bar, When of type `Array<{percent:number; color:string }>`, the `color` parameter supports the color types: `'Hex'` &#124; `'Hsl'` &#124; `'Hsla'` &#124; `'Rgb'` &#124; `'Rgba'` &#124; `'Semi Design Tokens'` | string &#124; Array<{percent:number; color:string }> | 'var(--semi-color-success)' |
 | strokeGradient | Whether to automatically generate gradient colors to fill color intervals, requires `stroke` to set at least one color interval | boolean | false |
 | strokeLinecap | round corner `round`/square corner `square` (only effective in type='circle' mode) | string | 'round' |
-| strokeWidth | When type is `line`, this property controls the height of the progress bar; when type is `circle`, this property controls the width of the progress bar | number | 4 |
+| strokeWidth |when type is `circle`, this property controls the width of the progress bar | number | 4 |
 | style | style | CSSProperties |  |
 | type | type, optional `line`, `circle` | string | 'line' |
 | width | Width of circular progress bar | number | 72 when size='default', 24 for 'small' |

+ 1 - 1
content/feedback/progress/index.md

@@ -424,7 +424,7 @@ import { IconChevronLeft, IconChevronRight } from '@douyinfe/semi-icons';
 | stroke | 进度条填充色,类型为 `Array<{percent:number; color:string }>` 时,`color` 参数支持颜色类型:`'Hex'` &#124; `'Hsl'` &#124; `'Hsla'` &#124; `'Rgb'` &#124; `'Rgba'` &#124; `'Semi Design Tokens'` | string &#124; Array<{percent:number; color:string }> | 'var(--semi-color-success)' |
 | strokeGradient | 是否自动生成渐变色补齐区间颜色,需要 `stroke` 设置至少一个颜色区间 | boolean | false |
 | strokeLinecap | 圆角`round`/方角`square`(仅在 type='circle'模式下生效) | string | 'round' |
-| strokeWidth | type 为`line`时,该属性控制进度条高度; type 为`circle`时,该属性控制进度条宽度 | number | 4 |
+| strokeWidth | type 为`circle`时,该属性控制进度条宽度 | number | 4 |
 | style | 样式 | CSSProperties |  |
 | type | 类型,可选`line`、`circle` | string | 'line' |
 | width | 环形进度条宽度 | number | size='default'时为 72,'small'为 24 |