-
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.
- Loading branch information
Showing
16 changed files
with
141 additions
and
114 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
order: 1 | ||
title: | ||
zh-CN: 动画效果 | ||
en-US: Active Animation | ||
--- | ||
## zh-CN | ||
|
||
显示动画效果。 | ||
|
||
## en-US | ||
|
||
Display active animation. |
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,9 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-skeleton-active', | ||
template: ` | ||
<nz-skeleton [nzActive]="true"></nz-skeleton> | ||
` | ||
}) | ||
export class NzDemoSkeletonActiveComponent { } |
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,14 +1,14 @@ | ||
--- | ||
order: 1 | ||
order: 0 | ||
title: | ||
zh-CN: 基础列表样例 | ||
en-US: Basic List Sample | ||
zh-CN: 基本 | ||
en-US: Basic | ||
--- | ||
|
||
## zh-CN | ||
|
||
在基础列表组件中使用加载占位符。 | ||
最简单的用法。 | ||
|
||
## en-US | ||
|
||
Use skeleton in basic list component. | ||
Basic usage. |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
order: 2 | ||
title: | ||
zh-CN: 包含子组件 | ||
en-US: Contains sub component | ||
--- | ||
|
||
## zh-CN | ||
|
||
加载占位图包含子组件。 | ||
|
||
## en-US | ||
|
||
Skeleton contains sub component. |
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,36 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-skeleton-children', | ||
template: ` | ||
<div class="article"> | ||
<nz-skeleton [nzLoading]="loading"> | ||
<h4>Ant Design, a design language</h4> | ||
<p>We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure), to help people create their product prototypes beautifully and efficiently.</p> | ||
</nz-skeleton> | ||
<button nz-button (click)="showSkeleton()" [disabled]="loading"> | ||
Show Skeleton | ||
</button> | ||
</div> | ||
`, | ||
styles : [ | ||
` | ||
.article h4 { | ||
margin-bottom: 16px; | ||
} | ||
.article button { | ||
margin-top: 16px; | ||
} | ||
` | ||
] | ||
}) | ||
export class NzDemoSkeletonChildrenComponent { | ||
loading = false; | ||
|
||
showSkeleton(): void { | ||
this.loading = true; | ||
setTimeout(() => { | ||
this.loading = false; | ||
}, 3000); | ||
} | ||
} |
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
Oops, something went wrong.