Skip to content

Commit 06b7aaf

Browse files
hyxingyuefeng
authored andcommitted
fix: 修改Spacing和WingBlank组建文档
1 parent 255d04f commit 06b7aaf

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

packages/core/src/Spacing/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
Spacing 间距
22
---
3-
4-
![](https://user-images.githubusercontent.com/57083007/146733395-aed1e7d6-724e-4e8e-9491-511253b9c0ff.png)<!--rehype:style=zoom: 33%;float: right; margin-left: 15px;-->
5-
3+
组件上下留一点间距
64
### 基础示例
75

8-
```jsx
9-
import { Fragment } from 'react';
6+
```jsx mdx:preview
7+
import React,{ Fragment } from 'react';
108
import { Spacing, Button } from '@uiw/react-native';
119

12-
function Demo() {
10+
const Demo = () => {
1311
return (
1412
<Fragment>
1513
<Button>按钮之间的间距</Button>
@@ -20,6 +18,8 @@ function Demo() {
2018
</Fragment>
2119
);
2220
}
21+
export default Demo
22+
2323
```
2424

2525
### props

packages/core/src/WingBlank/README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
WingBlank 两翼留白
22
---
33

4-
布局控件
5-
6-
![](https://user-images.githubusercontent.com/57083007/146734301-dd0b7af2-c823-463c-ab8a-075ef0ffdc48.png)<!--rehype:style=zoom: 33%;float: right; margin-left: 15px;-->
4+
左右两边空出一点距离
75

86
### 基础示例
97

108
<!--DemoStart-->
11-
```jsx
9+
```jsx mdx:preview
10+
import React,{Component} from 'react';
1211
import { View, Text } from 'react-native';
1312
import { WingBlank, Button } from '@uiw/react-native';
1413

15-
export default function Demo() {
16-
return (
17-
<WingBlank>
18-
</WingBlank>
19-
);
14+
class Demo extends Component {
15+
render() {
16+
return (
17+
<WingBlank>
18+
<Text>两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留两翼留白两翼留白两翼留白两翼留白</Text>
19+
</WingBlank>
20+
);
21+
}
2022
}
23+
export default Demo
2124
```
2225
<!--End-->
2326

0 commit comments

Comments
 (0)