-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fa8c82
commit 1169045
Showing
15 changed files
with
185 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import React from 'react' | ||
import { Space, Button } from '@nutui/nutui-react' | ||
import { Space, Button, Cell } from '@nutui/nutui-react' | ||
|
||
const Demo1 = () => { | ||
return ( | ||
<Space> | ||
<Button>按钮1</Button> | ||
<Button>按钮2</Button> | ||
<Button>按钮3</Button> | ||
</Space> | ||
<Cell> | ||
<Space> | ||
<Button>按钮1</Button> | ||
<Button>按钮2</Button> | ||
<Button>按钮3</Button> | ||
</Space> | ||
</Cell> | ||
) | ||
} | ||
export default Demo1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import React from 'react' | ||
import { Space, Button } from '@nutui/nutui-react' | ||
import { Space, Button, Cell } from '@nutui/nutui-react' | ||
|
||
const Demo2 = () => { | ||
return ( | ||
<Space wrap> | ||
<Button>按钮1</Button> | ||
<Button>按钮2</Button> | ||
<Button>按钮3</Button> | ||
<Button>按钮4</Button> | ||
<Button>按钮5</Button> | ||
<Button>按钮6</Button> | ||
</Space> | ||
<Cell> | ||
<Space wrap> | ||
<Button>按钮1</Button> | ||
<Button>按钮2</Button> | ||
<Button>按钮3</Button> | ||
<Button>按钮4</Button> | ||
<Button>按钮5</Button> | ||
<Button>按钮6</Button> | ||
</Space> | ||
</Cell> | ||
) | ||
} | ||
export default Demo2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import React from 'react' | ||
import { Space, Button } from '@nutui/nutui-react' | ||
import { Space, Button, Cell } from '@nutui/nutui-react' | ||
|
||
const Demo3 = () => { | ||
return ( | ||
<Space direction="vertical"> | ||
<Button>按钮1</Button> | ||
<Button>按钮2</Button> | ||
<Button>按钮3</Button> | ||
</Space> | ||
<Cell> | ||
<Space direction="vertical"> | ||
<Button>按钮1</Button> | ||
<Button>按钮2</Button> | ||
<Button>按钮3</Button> | ||
</Space> | ||
</Cell> | ||
) | ||
} | ||
export default Demo3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
import React from 'react' | ||
import { Space, Button, ConfigProvider } from '@nutui/nutui-react' | ||
import { Space, Button, ConfigProvider, Cell } from '@nutui/nutui-react' | ||
|
||
const Demo4 = () => { | ||
return ( | ||
<ConfigProvider | ||
theme={{ | ||
nutuiSpaceGap: '20px', | ||
}} | ||
> | ||
<Space direction="vertical"> | ||
<Button>按钮1</Button> | ||
<Button>按钮2</Button> | ||
<Button>按钮3</Button> | ||
</Space> | ||
</ConfigProvider> | ||
<Cell> | ||
<ConfigProvider | ||
theme={{ | ||
nutuiSpaceGap: '20px', | ||
}} | ||
> | ||
<Space direction="vertical"> | ||
<Button>按钮1</Button> | ||
<Button>按钮2</Button> | ||
<Button>按钮3</Button> | ||
</Space> | ||
</ConfigProvider> | ||
</Cell> | ||
) | ||
} | ||
export default Demo4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
import React from 'react' | ||
import { Space, Button } from '@nutui/nutui-react' | ||
import { Space, Button, Cell } from '@nutui/nutui-react' | ||
|
||
const Demo5 = () => { | ||
return ( | ||
<Space justify="start" wrap> | ||
<Button>按钮1</Button> | ||
<div> | ||
<Button block style={{ marginBottom: 5 }}> | ||
按钮2 | ||
</Button> | ||
<Button block>按钮2</Button> | ||
</div> | ||
<div> | ||
<Button block style={{ marginBottom: 5 }}> | ||
按钮3 | ||
</Button> | ||
<Button block style={{ marginBottom: 5 }}> | ||
按钮3 | ||
</Button> | ||
<Button block>按钮3</Button> | ||
</div> | ||
</Space> | ||
<Cell> | ||
<Space justify="start" wrap> | ||
<Button>按钮1</Button> | ||
<div> | ||
<Button style={{ marginBottom: 5 }}>按钮2</Button> | ||
<Button>按钮2</Button> | ||
</div> | ||
<div> | ||
<Button style={{ marginBottom: 5 }}>按钮3</Button> | ||
<Button style={{ marginBottom: 5 }}>按钮3</Button> | ||
<Button>按钮3</Button> | ||
</div> | ||
</Space> | ||
</Cell> | ||
) | ||
} | ||
export default Demo5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
import React from 'react' | ||
import { Space, Button } from '@nutui/nutui-react' | ||
import { Space, Button, Cell } from '@nutui/nutui-react' | ||
|
||
const Demo6 = () => { | ||
return ( | ||
<Space align="end" wrap> | ||
<Button>按钮1</Button> | ||
<div> | ||
<Button block style={{ marginBottom: 5 }}> | ||
按钮2 | ||
</Button> | ||
<Button block>按钮2</Button> | ||
</div> | ||
<div> | ||
<Button block style={{ marginBottom: 5 }}> | ||
按钮3 | ||
</Button> | ||
<Button block style={{ marginBottom: 5 }}> | ||
按钮3 | ||
</Button> | ||
<Button block>按钮3</Button> | ||
</div> | ||
</Space> | ||
<Cell> | ||
<Space align="end" wrap> | ||
<Button>按钮1</Button> | ||
<div> | ||
<Button style={{ marginBottom: 5 }}>按钮2</Button> | ||
<Button>按钮2</Button> | ||
</div> | ||
<div> | ||
<Button style={{ marginBottom: 5 }}>按钮3</Button> | ||
<Button style={{ marginBottom: 5 }}>按钮3</Button> | ||
<Button>按钮3</Button> | ||
</div> | ||
</Space> | ||
</Cell> | ||
) | ||
} | ||
export default Demo6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import React from 'react' | ||
import { Space, Button } from '@nutui/nutui-react-taro' | ||
import { Cell, Space, Button } from '@nutui/nutui-react-taro' | ||
|
||
const Demo1 = () => { | ||
return ( | ||
<Space> | ||
<Button>按钮1</Button> | ||
<Button>按钮2</Button> | ||
<Button>按钮3</Button> | ||
</Space> | ||
<Cell> | ||
<Space> | ||
<Button>按钮1</Button> | ||
<Button>按钮2</Button> | ||
<Button>按钮3</Button> | ||
</Space> | ||
</Cell> | ||
) | ||
} | ||
export default Demo1 |
Oops, something went wrong.