-
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:tree,tree-select,tree-view): migrate demo to standalo…
…ne mode (#8813) * refactor(module:tree): migrate demo to standalone mode * refactor(module:tree-view): migrate demo to standalone mode * refactor(module:tree-select): migrate demo to standalone mode
- Loading branch information
Showing
31 changed files
with
285 additions
and
277 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { NzSpinModule } from 'ng-zorro-antd/spin'; | ||
import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-tree-select-no-data', | ||
standalone: true, | ||
imports: [NzSpinModule, NzTreeSelectModule], | ||
template: ` | ||
<nz-tree-select | ||
style="width: 250px" | ||
[nzNodes]="nodes" | ||
[nzNodes]="[]" | ||
nzPlaceHolder="Please select" | ||
[(ngModel)]="value" | ||
[nzNotFoundContent]="noData" | ||
></nz-tree-select> | ||
<ng-template #noData> | ||
<div style="height: 200px; display: flex; justify-content: center; align-items: center"> | ||
<nz-spin nzSimple> </nz-spin> | ||
<nz-spin nzSimple></nz-spin> | ||
</div> | ||
</ng-template> | ||
` | ||
}) | ||
export class NzDemoTreeSelectNoDataComponent { | ||
value?: string; | ||
nodes = []; | ||
} | ||
export class NzDemoTreeSelectNoDataComponent {} |
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,31 +1,23 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-tree-select-status', | ||
standalone: true, | ||
imports: [NzTreeSelectModule], | ||
template: ` | ||
<nz-space nzDirection="vertical" style="width:100%;"> | ||
<nz-tree-select | ||
*nzSpaceItem | ||
[nzNodes]="nodes" | ||
nzStatus="error" | ||
nzPlaceHolder="Error" | ||
[(ngModel)]="value" | ||
style="width:100%;" | ||
></nz-tree-select> | ||
<nz-tree-select | ||
*nzSpaceItem | ||
nzMultiple | ||
[nzNodes]="nodes" | ||
nzShowSearch | ||
nzStatus="warning" | ||
nzPlaceHolder="Warning multiple" | ||
[(ngModel)]="value" | ||
style="width:100%;" | ||
></nz-tree-select> | ||
</nz-space> | ||
<nz-tree-select [nzNodes]="[]" nzStatus="error" nzPlaceHolder="Error" style="width:100%;"></nz-tree-select> | ||
<br /> | ||
<br /> | ||
<nz-tree-select | ||
nzMultiple | ||
[nzNodes]="[]" | ||
nzShowSearch | ||
nzStatus="warning" | ||
nzPlaceHolder="Warning multiple" | ||
style="width:100%;" | ||
></nz-tree-select> | ||
` | ||
}) | ||
export class NzDemoTreeSelectStatusComponent { | ||
value?: string; | ||
nodes = []; | ||
} | ||
export class NzDemoTreeSelectStatusComponent {} |
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.