Skip to content

Commit

Permalink
fix: 改用 space 标签
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyatong committed Dec 4, 2024
1 parent 1169045 commit 88379d4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 30 deletions.
14 changes: 7 additions & 7 deletions src/packages/space/demos/h5/demo5.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const Demo5 = () => {
<Cell>
<Space justify="start" wrap>
<Button>按钮1</Button>
<div>
<Button style={{ marginBottom: 5 }}>按钮2</Button>
<Space direction="vertical">
<Button>按钮2</Button>
</div>
<div>
<Button style={{ marginBottom: 5 }}>按钮3</Button>
<Button style={{ marginBottom: 5 }}>按钮3</Button>
<Button>按钮2</Button>
</Space>
<Space direction="vertical">
<Button>按钮3</Button>
<Button>按钮3</Button>
<Button>按钮3</Button>
</div>
</Space>
</Space>
</Cell>
)
Expand Down
14 changes: 7 additions & 7 deletions src/packages/space/demos/h5/demo6.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const Demo6 = () => {
<Cell>
<Space align="end" wrap>
<Button>按钮1</Button>
<div>
<Button style={{ marginBottom: 5 }}>按钮2</Button>
<Space direction="vertical">
<Button>按钮2</Button>
</div>
<div>
<Button style={{ marginBottom: 5 }}>按钮3</Button>
<Button style={{ marginBottom: 5 }}>按钮3</Button>
<Button>按钮2</Button>
</Space>
<Space direction="vertical">
<Button>按钮3</Button>
<Button>按钮3</Button>
<Button>按钮3</Button>
</div>
</Space>
</Space>
</Cell>
)
Expand Down
15 changes: 7 additions & 8 deletions src/packages/space/demos/taro/demo5.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import React from 'react'
import { View } from '@tarojs/components'
import { Space, Button, Cell } from '@nutui/nutui-react-taro'

const Demo5 = () => {
return (
<Cell>
<Space justify="start" wrap>
<Button>按钮1</Button>
<View>
<Button style={{ marginBottom: 5 }}>按钮2</Button>
<Space direction="vertical">
<Button>按钮2</Button>
</View>
<View>
<Button style={{ marginBottom: 5 }}>按钮3</Button>
<Button style={{ marginBottom: 5 }}>按钮3</Button>
<Button>按钮2</Button>
</Space>
<Space direction="vertical">
<Button>按钮3</Button>
<Button>按钮3</Button>
<Button>按钮3</Button>
</View>
</Space>
</Space>
</Cell>
)
Expand Down
15 changes: 7 additions & 8 deletions src/packages/space/demos/taro/demo6.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import React from 'react'
import { View } from '@tarojs/components'
import { Space, Button, Cell } from '@nutui/nutui-react-taro'

const Demo6 = () => {
return (
<Cell>
<Space align="end" wrap>
<Button>按钮1</Button>
<View>
<Button style={{ marginBottom: 5 }}>按钮2</Button>
<Space direction="vertical">
<Button>按钮2</Button>
</View>
<View>
<Button style={{ marginBottom: 5 }}>按钮3</Button>
<Button style={{ marginBottom: 5 }}>按钮3</Button>
<Button>按钮2</Button>
</Space>
<Space direction="vertical">
<Button>按钮3</Button>
<Button>按钮3</Button>
<Button>按钮3</Button>
</View>
</Space>
</Space>
</Cell>
)
Expand Down

0 comments on commit 88379d4

Please sign in to comment.