-
Notifications
You must be signed in to change notification settings - Fork 296
fix: space harmony #2817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
fix: space harmony #2817
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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> | ||
| <Space direction="vertical"> | ||
| <Button>按钮2</Button> | ||
| <Button>按钮2</Button> | ||
| </Space> | ||
| <Space direction="vertical"> | ||
| <Button>按钮3</Button> | ||
| <Button>按钮3</Button> | ||
| <Button>按钮3</Button> | ||
| </Space> | ||
| </Space> | ||
| </Cell> | ||
| ) | ||
| } | ||
| export default Demo5 |
This file contains hidden or 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> | ||
| <Space direction="vertical"> | ||
| <Button>按钮2</Button> | ||
| <Button>按钮2</Button> | ||
| </Space> | ||
| <Space direction="vertical"> | ||
| <Button>按钮3</Button> | ||
| <Button>按钮3</Button> | ||
| <Button>按钮3</Button> | ||
| </Space> | ||
| </Space> | ||
| </Cell> | ||
| ) | ||
| } | ||
| export default Demo6 |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.