Skip to content

Commit 0099742

Browse files
author
rulishu
committed
fix(WingBlank): 修改WingBlank MarkDown为函数组件文档
1 parent b0d00d0 commit 0099742

File tree

1 file changed

+20
-24
lines changed

1 file changed

+20
-24
lines changed

packages/core/src/WingBlank/README.md

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ import React,{Component} from 'react';
1111
import { Text } from 'react-native';
1212
import { WingBlank } from '@uiw/react-native';
1313

14-
class Demo extends Component {
15-
render() {
16-
return (
17-
<WingBlank>
18-
<Text>两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留两翼留白两翼留白两翼留白两翼留白</Text>
19-
</WingBlank>
20-
);
21-
}
14+
function Demo() {
15+
return (
16+
<WingBlank>
17+
<Text>两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留白两翼留两翼留白两翼留白两翼留白两翼留白</Text>
18+
</WingBlank>
19+
);
2220
}
2321
export default Demo
2422
```
@@ -30,22 +28,20 @@ import React,{Component,Fragment} from 'react';
3028
import { Text } from 'react-native';
3129
import { WingBlank } from '@uiw/react-native';
3230

33-
class Demo extends Component {
34-
render() {
35-
return (
36-
<Fragment>
37-
<WingBlank size='small'>
38-
<Text>两翼留白两翼留白</Text>
39-
</WingBlank>
40-
<WingBlank size='default'>
41-
<Text>两翼留白两翼留白</Text>
42-
</WingBlank>
43-
<WingBlank size='large'>
44-
<Text>两翼留白两翼留白</Text>
45-
</WingBlank>
46-
</Fragment>
47-
);
48-
}
31+
function Demo() {
32+
return (
33+
<Fragment>
34+
<WingBlank size='small'>
35+
<Text>两翼留白两翼留白</Text>
36+
</WingBlank>
37+
<WingBlank size='default'>
38+
<Text>两翼留白两翼留白</Text>
39+
</WingBlank>
40+
<WingBlank size='large'>
41+
<Text>两翼留白两翼留白</Text>
42+
</WingBlank>
43+
</Fragment>
44+
);
4945
}
5046
export default Demo
5147
```

0 commit comments

Comments
 (0)