-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修复两种类型的 gap 嵌套使用导致 grid 宽度意外减去了 gap 的问题 Co-authored-by: Jack <[email protected]>
- Loading branch information
Showing
4 changed files
with
40 additions
and
9 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
22 changes: 22 additions & 0 deletions
22
packages/website/src/components/basic/grid/demo/nested-container.tsx
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
import { Grid } from '@gio-design/components'; | ||
|
||
import '@gio-design/components/es/components/grid/style/index.css'; | ||
import './style.less'; | ||
|
||
const Base = (): JSX.Element => { | ||
return ( | ||
<Grid className="demo"> | ||
<Grid span={12}>span=12</Grid> | ||
<Grid container span={12} gap={1}> | ||
<Grid span={3}>span=3</Grid> | ||
<Grid container span={9} gap={1}> | ||
<Grid span={6}>span=6</Grid> | ||
<Grid span={6}>span=6</Grid> | ||
</Grid> | ||
</Grid> | ||
</Grid> | ||
); | ||
}; | ||
|
||
export default Base; |
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
7158844
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: