Skip to content

Commit 06de79d

Browse files
committed
doc(website): Update Readme.md
1 parent ffe7fee commit 06de79d

File tree

19 files changed

+18
-40
lines changed

19 files changed

+18
-40
lines changed

packages/core/src/ActionSheet/README.md

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

44
该组件提供了一种动作面板, 底部缓缓出现
55

6+
<image src='https://user-images.githubusercontent.com/57083007/137631382-70df5dd3-0200-4ddb-bd11-3578ee99d032.gif' alt='ActionSheet' style='zoom:33%;' />
7+
68
### 基础示例
79

810
```jsx

packages/core/src/Avatar/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Avatar 头像
33

44
用来代表用户或事物,支持图片展示,当前是基于 React Native 组件 Image 封装,你也可以使用更快的图片展示插件 [react-native-fast-image](https://github.com/DylanVann/react-native-fast-image)
55

6+
<image src='https://user-images.githubusercontent.com/57083007/137631738-4338453c-c552-4caa-9261-8fd84c018942.png' alt='Avatar' style='zoom:33%;' />
67

78
### 基础示例
89

packages/core/src/Badge/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Badge 标记
22
---
33

4+
<image src='https://user-images.githubusercontent.com/57083007/137631808-f3899eb4-69c1-4dd5-a686-0f8bb38fe4b6.png' alt='Badge' style='zoom:33%;' />
5+
46
### 基础示例
57

68
```jsx

packages/core/src/Button/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ Button 按钮
33

44
按钮用于开始一个即时操作。
55

6+
<image src='https://user-images.githubusercontent.com/57083007/137631908-57393986-82b8-4e2e-b753-aa77dac58672.png' alt='Button' style='zoom:33%;' />
7+
<image src='https://user-images.githubusercontent.com/57083007/137631915-8281cbac-ba0d-4795-8f8b-8274bcecc172.png' alt='Button' style='zoom:33%;' />
8+
69
### 基础示例
710

811
<!--DemoStart-->

packages/core/src/ButtonGroup/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ ButtonGroup 按钮组
33

44
用于一组按钮的排版展示。
55

6+
<image src='https://user-images.githubusercontent.com/57083007/137632086-8441bd1b-e8f9-4c15-828d-ad86310fdb72.png' alt='ButtonGroup' style='zoom:33%;' />
7+
68
### 基础示例
79

810
<!--DemoStart-->

packages/core/src/Card/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Card 卡片
33

44
最基础的卡片容器,可承载文字、列表、图片、段落。
55

6+
<image src='https://user-images.githubusercontent.com/57083007/137632175-fc80bff2-7224-4843-97ec-9f8d9cbc6746.png' alt='Card' style='zoom:33%;' />
7+
68
### 基础示例
79

810
<!--DemoStart-->
Binary file not shown.

website/src/pages/components/actionSheet/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/ActionSheet/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='ActionSheet' style='zoom:33%;' />\n\n" +
14-
result.substr(index);
15-
return abc;
9+
return md.default || md;
1610
};
1711
}
-463 KB
Binary file not shown.

website/src/pages/components/avatar/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/Avatar/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.png' alt='Avatar' style='zoom:33%;' />\n\n" +
14-
result.substr(index);
15-
return abc;
9+
return md.default || md;
1610
};
1711
}
-456 KB
Binary file not shown.

website/src/pages/components/badge/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/Badge/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.png' alt='Badge' style='zoom:33%;' />\n\n" +
14-
result.substr(index);
15-
return abc;
9+
return md.default || md;
1610
};
1711
}
-437 KB
Binary file not shown.

website/src/pages/components/button/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/Button/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.png' alt='Button' style='zoom:33%;' /><image src='./index2.png' alt='Button' style='zoom:33%;' /> \n\n" +
14-
result.substr(index);
15-
return abc;
9+
return md.default || md;
1610
};
1711
}
-462 KB
Binary file not shown.
Binary file not shown.

website/src/pages/components/buttongroup/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/ButtonGroup/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.png' alt='ButtonGroup' style='zoom:33%;' />\n\n" +
14-
result.substr(index);
15-
return abc;
9+
return md.default || md;
1610
};
1711
}
-630 KB
Binary file not shown.

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ export default class Page extends Markdown {
66
const md = await import('@uiw/react-native/lib/Card/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) + "\n<image src='./index.png' alt='Card' style='zoom:33%;' />\n\n" + result.substr(index);
13-
return abc;
9+
return md.default || md;
1410
};
1511
}

0 commit comments

Comments
 (0)