Browse Source

Merge pull request #55 from songjianet/main-docs1

docs: Update docs of progress
pointhalo 4 years ago
parent
commit
d792fc4948
2 changed files with 4 additions and 4 deletions
  1. 3 3
      content/feedback/progress/index-en-US.md
  2. 1 1
      content/feedback/progress/index.md

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

@@ -74,7 +74,7 @@ import { Progress } from '@douyinfe/semi-ui';
 ### Vertical progress bar
 
 You can use vertical progress bar by setting `direction='vertical'`
-If perset width is not satisfied, you can pass width to customize the width of the vertical progress bar throught `style` property.
+If preset width is not satisfied, you can pass width to customize the width of the vertical progress bar through `style` property.
 
 ```jsx live=true
 import React from 'react';
@@ -223,7 +223,7 @@ import { Progress } from '@douyinfe/semi-ui';
 | PROPERTIES | Instructions | Type | Default |
 |--- | --- | --- | --- |
 |className | style class name | string | |
-|direction | The direction of the bar progress bar `horizontal`, s`vertical` | string |'horizontal' |
+|direction | The direction of the bar progress bar `horizontal`, `vertical` | string |'horizontal' |
 |format | Formatting function, the input parameter is the current percentage, the result of return will be directly rendered in the center of the circular progress bar | (percent: number) => ReactNode | (percent) => percent +'%' |
 |orbitStroke | Progress bar track fill color<br/>**provided after v1.0.0** | string |'var(--semi-color-fill-0)' |
 |percent | percentage of progress | number | |
@@ -234,7 +234,7 @@ import { Progress } from '@douyinfe/semi-ui';
 |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 |
 |style | style | CSSProperties | |
 |type | type, optional `line`, `circle` | string |'line' |
-|width | Width of circular progress bar | number | 72 when size='default', 24 for'small' |
+|width | Width of circular progress bar | number | 72 when size='default', 24 for 'small' |
 
 ## Design Tokens
 <DesignToken/>

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

@@ -251,7 +251,7 @@ import { Progress } from '@douyinfe/semi-ui';
 |属性 | 说明 | 类型 | 默认值 |
 |--- | --- | --- | --- |
 |className | 样式类名 | string |  |
-|direction | 条状进度条方向 `horizontal`、s`vertical` | string | 'horizontal' |
+|direction | 条状进度条方向 `horizontal`、`vertical` | string | 'horizontal' |
 |format | 格式化函数,入参为当前百分比,return 的结果将会直接渲染在圆形进度条中心 | (percent: number) => ReactNode | (percent) => percent + '%' |
 |orbitStroke | 进度条轨道填充色<br/>**v1.0.0 后提供** | string | 'var(--semi-color-fill-0)' |
 |percent | 进度百分比 | number |  |