Skip to content

Commit e2ef571

Browse files
author
杨楠
committed
doc(website): Update Readme.md
1 parent 1d04323 commit e2ef571

File tree

22 files changed

+47
-50
lines changed

22 files changed

+47
-50
lines changed

packages/core/src/Picker/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Picker 选择器
77
> 激活状态尽量不要改变高度, 只是修改颜色作为标记。
88
<!--rehype:style=border-left: 8px solid #ffe564;background-color: #ffe56440;padding: 12px 16px;-->
99
10+
<img src='https://user-images.githubusercontent.com/66067296/139409471-846bdddb-99cc-4b2d-b2da-278da81b0c22.gif' alt='Picker' style='zoom:66%;' />
11+
1012
### 基础示例
1113

1214
```jsx

packages/core/src/Progress/README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Progress 进度条
33

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

6+
<img src='https://user-images.githubusercontent.com/66067296/140003519-03faded1-e004-45eb-b9af-442d84d6f258.gif' alt='Progress' style='zoom:33%;' />
7+
68
### 基础示例
79

810
<!--DemoStart-->
@@ -15,7 +17,29 @@ function Demo() {
1517
return (
1618
<SafeAreaView style={{ flex: 1 }}>
1719
<Progress progress={30} position="fixed"/>
18-
<Progress progressColor="#5847FF" iconShow={true} xml={motorcycle} />
20+
</SafeAreaView>
21+
)
22+
}
23+
```
24+
25+
### 展示进度图标 & 进度提示字
26+
27+
<!--DemoStart-->
28+
```jsx
29+
import { SafeAreaView } from 'react-native';
30+
import { Progress } from '@uiw/react-native';
31+
import { motorcycle } from './svg';
32+
33+
function Demo() {
34+
return (
35+
<SafeAreaView style={{ flex: 1 }}>
36+
<Progress
37+
progressColor="#5847FF"
38+
xml={motorcycle}
39+
progressShow={false}
40+
iconShow={true}
41+
progress={30}
42+
/>
1943
</SafeAreaView>
2044
)
2145
}

packages/core/src/QuickList/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ QuickList 快速请求列表
33

44
快速完成上拉下拉请求列表。
55

6+
<img src='https://user-images.githubusercontent.com/66067296/140003953-6d3c5a99-a656-4bd3-a1e9-3711550cb87d.gif' alt='QuickList' style='zoom:33%;' />
7+
68
### 基础示例
79

810
<!--DemoStart-->

packages/core/src/Radio/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Radio 单选框
33

44
单选框,在一组备选项中进行单选。
55

6+
<img src='https://user-images.githubusercontent.com/66067296/140004062-402c9ff6-0783-44a8-9745-83f0c62438db.png' alt='Radio' style='zoom:33%;' />
7+
68
### 基础示例
79

810
```jsx

packages/core/src/Rating/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Rating 评分
33

44
在你想用任意需要评分的的地方使用。
55

6+
<img src='https://user-images.githubusercontent.com/66067296/140004186-31b369e2-13f1-4dd2-aef5-331aa133b0fe.gif' alt='Rating' style='zoom:33%;' />
7+
68
### 基础示例
79

810
```jsx

packages/core/src/Result/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Result 结果页
33

44
在整张页面中组织插画、图标、文字等内容,向用户反馈操作结果。
55

6+
<img src='https://user-images.githubusercontent.com/66067296/140004296-414edcc2-c809-4fcf-a147-5088757ea7b1.png' alt='Result' style='zoom:33%;' />
7+
68
### 基础示例
79

810
```jsx

packages/core/src/SearchBar/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
SearchBar 模糊搜素组件
2+
3+
<img src='https://user-images.githubusercontent.com/66067296/140004480-cadbd892-afb3-483f-95a3-3bfe43a4bdfc.gif' alt='SearchBar' style='zoom:33%;' />
4+
25
---
36

47
### 基础示例

packages/core/src/SearchInputBar/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ SearchInputBar 动作面板
33

44
可用于用户输入搜索信息
55

6+
<img src='https://user-images.githubusercontent.com/66067296/140004397-65ffc69e-a79f-425d-9d75-2928c125e5c8.gif' alt='SearchInputBar' style='zoom:33%;' />
7+
68
### 基础示例
79

810
```jsx
-540 KB
Binary file not shown.

website/src/pages/components/progress/index.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ export default class Page extends Markdown {
66
const md = await import('@uiw/react-native/lib/Progress/README.md');
77
// 支持 markdown 中,相对于当前 index.tsx 相对路径引入图片资源
88
importAll((require as any).context('./', true, /\.(png|gif|jpg|svg)$/), this.imageFiles);
9-
const result = md.default || md;
10-
const index = result.indexOf('### 基础示例');
11-
const abc =
12-
result.substr(0, index) +
13-
"\n<image src='./index.gif' alt='Progress' style='zoom:33%;' />\n\n" +
14-
result.substr(index);
15-
return abc;
9+
return md.default || md;
1610
};
1711
}

0 commit comments

Comments
 (0)