-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(module:card): migrate demo to standalone mode (#8742)
* refactor(module:card): migrate demo to standalone mode * refactor(module:card): migrate demo to standalone mode
- Loading branch information
Showing
12 changed files
with
88 additions
and
43 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
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,22 +1,29 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { NzCardModule } from 'ng-zorro-antd/card'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-card-grid-card', | ||
standalone: true, | ||
imports: [NzCardModule], | ||
template: ` | ||
<nz-card nzTitle="Cart Title"> | ||
<div nz-card-grid [ngStyle]="gridStyle">Content</div> | ||
<div nz-card-grid [ngStyle]="gridStyle">Content</div> | ||
<div nz-card-grid [ngStyle]="gridStyle">Content</div> | ||
<div nz-card-grid [ngStyle]="gridStyle">Content</div> | ||
<div nz-card-grid [ngStyle]="gridStyle">Content</div> | ||
<div nz-card-grid [ngStyle]="gridStyle">Content</div> | ||
<div nz-card-grid [ngStyle]="gridStyle">Content</div> | ||
<div nz-card-grid>Content</div> | ||
<div nz-card-grid>Content</div> | ||
<div nz-card-grid>Content</div> | ||
<div nz-card-grid>Content</div> | ||
<div nz-card-grid>Content</div> | ||
<div nz-card-grid>Content</div> | ||
<div nz-card-grid>Content</div> | ||
</nz-card> | ||
` | ||
`, | ||
styles: [ | ||
` | ||
[nz-card-grid] { | ||
width: 25%; | ||
text-align: center; | ||
} | ||
` | ||
] | ||
}) | ||
export class NzDemoCardGridCardComponent { | ||
gridStyle = { | ||
width: '25%', | ||
textAlign: 'center' | ||
}; | ||
} | ||
export class NzDemoCardGridCardComponent {} |
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 was deleted.
Oops, something went wrong.
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