Skip to content

Commit 9bf7649

Browse files
nullptr-zff
authored andcommitted
doc(Progress): 重构进度条组件文档
1 parent 0652ece commit 9bf7649

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/core/src/Progress/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ Progress 进度条
33

44
表明某个任务的当前进度。
55

6-
![](https://user-images.githubusercontent.com/66067296/140003519-03faded1-e004-45eb-b9af-442d84d6f258.gif)<!--rehype:style=zoom: 33%;float: right; margin-left: 15px;-->
76

87
### 基础示例
98

10-
<!--DemoStart-->
11-
```jsx
9+
<!--DemoStart-->
10+
```jsx mdx:preview
11+
import React from 'react';
1212
import { SafeAreaView } from 'react-native';
1313
import { Progress } from '@uiw/react-native';
1414
import { motorcycle } from './svg';
@@ -20,29 +20,29 @@ function Demo() {
2020
</SafeAreaView>
2121
)
2222
}
23+
export default Demo
2324
```
2425

25-
### 展示进度图标 & 进度提示字
26+
### 自定义颜色
2627

27-
<!--DemoStart-->
28-
```jsx
28+
<!--DemoStart-->
29+
```jsx mdx:preview
30+
import React from 'react';
2931
import { SafeAreaView } from 'react-native';
3032
import { Progress } from '@uiw/react-native';
31-
import { motorcycle } from './svg';
3233

3334
function Demo() {
3435
return (
3536
<SafeAreaView style={{ flex: 1 }}>
3637
<Progress
3738
progressColor="#5847FF"
38-
xml={motorcycle}
3939
progressShow={false}
40-
iconShow={true}
4140
progress={30}
4241
/>
4342
</SafeAreaView>
4443
)
4544
}
45+
export default Demo
4646
```
4747
<!--End-->
4848

0 commit comments

Comments
 (0)