File tree Expand file tree Collapse file tree 4 files changed +28
-30
lines changed
Expand file tree Collapse file tree 4 files changed +28
-30
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ const Demo5 = () => {
66 < Cell >
77 < Space justify = "start" wrap >
88 < Button > 按钮1</ Button >
9- < div >
10- < Button style = { { marginBottom : 5 } } > 按钮2</ Button >
9+ < Space direction = "vertical" >
1110 < Button > 按钮2</ Button >
12- </ div >
13- < div >
14- < Button style = { { marginBottom : 5 } } > 按钮3</ Button >
15- < Button style = { { marginBottom : 5 } } > 按钮3</ Button >
11+ < Button > 按钮2</ Button >
12+ </ Space >
13+ < Space direction = "vertical" >
14+ < Button > 按钮3</ Button >
15+ < Button > 按钮3</ Button >
1616 < Button > 按钮3</ Button >
17- </ div >
17+ </ Space >
1818 </ Space >
1919 </ Cell >
2020 )
Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ const Demo6 = () => {
66 < Cell >
77 < Space align = "end" wrap >
88 < Button > 按钮1</ Button >
9- < div >
10- < Button style = { { marginBottom : 5 } } > 按钮2</ Button >
9+ < Space direction = "vertical" >
1110 < Button > 按钮2</ Button >
12- </ div >
13- < div >
14- < Button style = { { marginBottom : 5 } } > 按钮3</ Button >
15- < Button style = { { marginBottom : 5 } } > 按钮3</ Button >
11+ < Button > 按钮2</ Button >
12+ </ Space >
13+ < Space direction = "vertical" >
14+ < Button > 按钮3</ Button >
15+ < Button > 按钮3</ Button >
1616 < Button > 按钮3</ Button >
17- </ div >
17+ </ Space >
1818 </ Space >
1919 </ Cell >
2020 )
Original file line number Diff line number Diff line change 11import React from 'react'
2- import { View } from '@tarojs/components'
32import { Space , Button , Cell } from '@nutui/nutui-react-taro'
43
54const Demo5 = ( ) => {
65 return (
76 < Cell >
87 < Space justify = "start" wrap >
98 < Button > 按钮1</ Button >
10- < View >
11- < Button style = { { marginBottom : 5 } } > 按钮2</ Button >
9+ < Space direction = "vertical" >
1210 < Button > 按钮2</ Button >
13- </ View >
14- < View >
15- < Button style = { { marginBottom : 5 } } > 按钮3</ Button >
16- < Button style = { { marginBottom : 5 } } > 按钮3</ Button >
11+ < Button > 按钮2</ Button >
12+ </ Space >
13+ < Space direction = "vertical" >
14+ < Button > 按钮3</ Button >
15+ < Button > 按钮3</ Button >
1716 < Button > 按钮3</ Button >
18- </ View >
17+ </ Space >
1918 </ Space >
2019 </ Cell >
2120 )
Original file line number Diff line number Diff line change 11import React from 'react'
2- import { View } from '@tarojs/components'
32import { Space , Button , Cell } from '@nutui/nutui-react-taro'
43
54const Demo6 = ( ) => {
65 return (
76 < Cell >
87 < Space align = "end" wrap >
98 < Button > 按钮1</ Button >
10- < View >
11- < Button style = { { marginBottom : 5 } } > 按钮2</ Button >
9+ < Space direction = "vertical" >
1210 < Button > 按钮2</ Button >
13- </ View >
14- < View >
15- < Button style = { { marginBottom : 5 } } > 按钮3</ Button >
16- < Button style = { { marginBottom : 5 } } > 按钮3</ Button >
11+ < Button > 按钮2</ Button >
12+ </ Space >
13+ < Space direction = "vertical" >
14+ < Button > 按钮3</ Button >
15+ < Button > 按钮3</ Button >
1716 < Button > 按钮3</ Button >
18- </ View >
17+ </ Space >
1918 </ Space >
2019 </ Cell >
2120 )
You can’t perform that action at this time.
0 commit comments