File tree Expand file tree Collapse file tree 2 files changed +18
-15
lines changed Expand file tree Collapse file tree 2 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 11Spacing 间距
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' ;
108import { 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
Original file line number Diff line number Diff line change 11WingBlank 两翼留白
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' ;
1211import { View , Text } from ' react-native' ;
1312import { 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
You can’t perform that action at this time.
0 commit comments