-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(Dashboard): 移动Dashboard模块,控制台组件,分析页,监控页到特性模块下
- Loading branch information
1 parent
94892b9
commit 68bce36
Showing
16 changed files
with
129 additions
and
22 deletions.
There are no files selected for viewing
101 changes: 101 additions & 0 deletions
101
src/app/feature/dashboard/analysis/analysis.component.html
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,101 @@ | ||
<div class="page-header"> | ||
<sim-breadcrumb></sim-breadcrumb> | ||
<div> | ||
<h2>{{_title}}</h2> | ||
</div> | ||
</div> | ||
<div class="page-content"> | ||
|
||
</div> | ||
|
||
<h2>color</h2> | ||
<div> | ||
<button sim-button>default</button> | ||
<button sim-button [color]="'primary'">primary</button> | ||
<button sim-button [color]="'secondary'">secondary</button> | ||
<button sim-button [color]="'success'">success</button> | ||
<button sim-button [color]="'danger'">danger</button> | ||
<button sim-button [color]="'warning'">warning</button> | ||
<button sim-button [color]="'info'">info</button> | ||
<button sim-button [color]="'link'">link</button> | ||
</div> | ||
<br /> | ||
<h2>size</h2> | ||
<div> | ||
<button sim-button [color]="'primary'" [size]="'lg'">大按钮</button> | ||
<button sim-button [color]="'info'">default|中等按钮</button> | ||
<button sim-button [color]="'danger'" [size]="'sm'">小按钮</button> | ||
<button sim-button [color]="'warning'" [size]="'xs'">超小按钮</button> | ||
</div> | ||
<br /> | ||
<h2>shape</h2> | ||
<h3>default</h3> | ||
<div> | ||
<button sim-button>default</button> | ||
<button sim-button [color]="'primary'">primary</button> | ||
<button sim-button [color]="'secondary'">secondary</button> | ||
<button sim-button [color]="'success'">success</button> | ||
<button sim-button [color]="'danger'">danger</button> | ||
<button sim-button [color]="'warning'">warning</button> | ||
<button sim-button [color]="'info'">info</button> | ||
</div> | ||
<br /> | ||
<h3>outline</h3> | ||
<div> | ||
<button sim-button [shape]="'outline'">default</button> | ||
<button sim-button [color]="'primary'" [shape]="'outline'">primary</button> | ||
<button sim-button [color]="'secondary'" [shape]="'outline'">secondary</button> | ||
<button sim-button [color]="'success'" [shape]="'outline'">success</button> | ||
<button sim-button [color]="'danger'" [shape]="'outline'">danger</button> | ||
<button sim-button [color]="'warning'" [shape]="'outline'">warning</button> | ||
<button sim-button [color]="'info'" [shape]="'outline'">info</button> | ||
</div> | ||
<br /> | ||
<h3>dashed</h3> | ||
<div> | ||
<button sim-button [shape]="'dashed'">default</button> | ||
<button sim-button [color]="'primary'" [shape]="'dashed'">primary</button> | ||
<button sim-button [color]="'secondary'" [shape]="'dashed'">secondary</button> | ||
<button sim-button [color]="'success'" [shape]="'dashed'">success</button> | ||
<button sim-button [color]="'danger'" [shape]="'dashed'">danger</button> | ||
<button sim-button [color]="'warning'" [shape]="'dashed'">warning</button> | ||
<button sim-button [color]="'info'" [shape]="'dashed'">info</button> | ||
</div> | ||
<br /> | ||
<h2>pill</h2> | ||
<div> | ||
<button sim-button sim-button-pill>default</button> | ||
<button sim-button [color]="'primary'" sim-button-pill [shape]="'outline'">primary</button> | ||
<button sim-button [color]="'secondary'" sim-button-pill [shape]="'dashed'">secondary</button> | ||
<button sim-button [color]="'success'" sim-button-pill>success</button> | ||
<button sim-button [color]="'danger'" sim-button-pill>danger</button> | ||
<button sim-button [color]="'warning'" sim-button-pill>warning</button> | ||
<button sim-button [color]="'info'" sim-button-pill>info</button> | ||
</div> | ||
<br /> | ||
<h2>block</h2> | ||
<div> | ||
<button sim-button [color]="'primary'" sim-button-block>primary block</button> | ||
</div> | ||
<br /> | ||
|
||
|
||
<button sim-button [color]="'primary'" (click)="open1($event, confirmTpl)">打开弹窗</button> | ||
|
||
<button sim-button appDialogClose>打开弹窗</button> | ||
<ng-template #confirmTpl> | ||
你红包 | ||
</ng-template> | ||
|
||
<sim-card sim-card-paddings> | ||
<sim-card-header>sim-card-header-1</sim-card-header> | ||
<sim-divider></sim-divider> | ||
<sim-card-content [loading]="_loading">sim-card-content-1</sim-card-content> | ||
</sim-card> | ||
<button sim-button sim-button-block (click)="_loading = false">打开弹窗</button> | ||
|
||
<div sim-card sim-card-hovering> | ||
<div sim-card-header>sim-card-header-2</div> | ||
<div sim-divider></div> | ||
<div sim-card-content [loading]="_loading">sim-card-content-2</div> | ||
</div> |
File renamed without changes.
File renamed without changes.
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,27 @@ | ||
|
||
import { Component, OnInit } from '@angular/core'; | ||
import { DialogService } from '@app/simple/dialog'; | ||
@Component({ | ||
selector: 'app-analysis', | ||
templateUrl: './analysis.component.html', | ||
styleUrls: ['./analysis.component.scss'] | ||
}) | ||
export class AnalysisComponent implements OnInit { | ||
|
||
_loading = true; | ||
constructor(private dialog: DialogService) { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
open1($event, confirmTpl) { | ||
const confirm = this.dialog.confirm('111'); | ||
confirm.subscribe(result => { | ||
console.log('confirm', result); | ||
}); | ||
} | ||
|
||
close() { | ||
this._loading = false; | ||
} | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/app/pages/dashboard/dashboard.module.ts → ...app/feature/dashboard/dashboard.module.ts
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.