-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(module:space): support
nzAlign
(#5299)
- Loading branch information
Showing
8 changed files
with
113 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
order: 3 | ||
title: | ||
zh-CN: 对齐 | ||
en-US: Align | ||
--- | ||
|
||
## zh-CN | ||
|
||
设置对齐模式。 | ||
|
||
## en-US | ||
|
||
Config item align. |
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,58 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-space-align', | ||
template: ` | ||
<div class="space-align-container"> | ||
<div nz-space nzAlign="center" class="space-align-block"> | ||
<nz-space-item>center</nz-space-item> | ||
<nz-space-item> | ||
<button nz-button nzType="primary">Button</button> | ||
</nz-space-item> | ||
<span nz-space-item class="mock-block">Block</span> | ||
</div> | ||
<div nz-space nzAlign="start" class="space-align-block"> | ||
<nz-space-item>start</nz-space-item> | ||
<nz-space-item> | ||
<button nz-button nzType="primary">Button</button> | ||
</nz-space-item> | ||
<span nz-space-item class="mock-block">Block</span> | ||
</div> | ||
<div nz-space nzAlign="end" class="space-align-block"> | ||
<nz-space-item>end</nz-space-item> | ||
<nz-space-item> | ||
<button nz-button nzType="primary">Button</button> | ||
</nz-space-item> | ||
<span nz-space-item class="mock-block">Block</span> | ||
</div> | ||
<div nz-space nzAlign="baseline" class="space-align-block"> | ||
<nz-space-item>baseline</nz-space-item> | ||
<nz-space-item> | ||
<button nz-button nzType="primary">Button</button> | ||
</nz-space-item> | ||
<span nz-space-item class="mock-block">Block</span> | ||
</div> | ||
</div> | ||
`, | ||
styles: [ | ||
` | ||
.space-align-container { | ||
display: flex; | ||
align-item: flex-start; | ||
flex-wrap: wrap; | ||
} | ||
.space-align-block { | ||
margin: 8px 4px; | ||
border: 1px solid #40a9ff; | ||
padding: 4px; | ||
flex: none; | ||
} | ||
.space-align-block .mock-block { | ||
display: inline-block; | ||
padding: 32px 8px 16px; | ||
background: rgba(150, 150, 150, 0.2); | ||
} | ||
` | ||
] | ||
}) | ||
export class NzDemoSpaceAlignComponent {} |
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
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