binary viewer is added

This commit is contained in:
병준 박 2019-11-07 15:59:50 +09:00
parent 8066acc2bd
commit b077b91dde
3 changed files with 71 additions and 15 deletions

View File

@ -1,18 +1,53 @@
<div class="ucap-image-viewer-container"> <div class="ucap-binary-viewer-container">
<mat-toolbar color="primary"> <mat-toolbar color="accent" class="ucap-binary-viewer-header">
<span>Third Line</span> <mat-icon class="ucap-binary-viewer-icon">attachment</mat-icon>
<span class="ucap-image-viewer-spacer"></span> <span class="ucap-binary-viewer-title">{{ fileInfo.fileName }}</span>
<mat-icon <span class="ucap-binary-viewer-spacer"></span>
class="example-icon"
aria-hidden="false" <button
aria-label="Example heart icon" mat-icon-button
>favorite</mat-icon class="ucap-binary-viewer-action"
matTooltip="다운로드"
matTooltipPosition="below"
aria-label=""
(click)="onClickDownload()"
> >
<mat-icon <mat-icon>get_app</mat-icon>
class="example-icon" </button>
aria-hidden="false"
aria-label="Example delete icon" <button
>delete</mat-icon mat-raised-button
color="primary"
class="ucap-binary-viewer-action"
(click)="onClickClose()"
> >
Close
</button>
</mat-toolbar> </mat-toolbar>
<div class="ucap-binary-viewer-body">
<div
class="ucap-binary-viewer-content-wrapper"
fxLayout="column"
fxLayout.xs="row"
fxFlexFill
fxLayoutAlign="center center"
>
<div [ngClass]="['mime-icon', 'light', 'ico-' + fileInfo.fileExt]">
<div class="ico"></div>
</div>
<div>
미리보기를 지원하지 않는 파일입니다.
</div>
<div>
<button
color="warn"
mat-raised-button
aria-label=""
(click)="onClickDownload()"
>
Download
</button>
</div>
</div>
</div>
</div> </div>

View File

@ -6,8 +6,27 @@
width: 100%; width: 100%;
height: 50px; height: 50px;
.ucap-binary-viewer-icon {
}
.ucap-binary-viewer-title {
}
.ucap-binary-viewer-spacer { .ucap-binary-viewer-spacer {
flex: 1 1 auto; flex: 1 1 auto;
} }
.ucap-binary-viewer-action {
}
}
.ucap-binary-viewer-body {
position: relative;
width: 100%;
height: 100%;
background-color: white;
.ucap-binary-viewer-content-wrapper {
}
} }
} }

View File

@ -26,7 +26,9 @@ export class BinaryViewerComponent implements OnInit {
ngOnInit() {} ngOnInit() {}
onClickDownload(): void {} onClickDownload(): void {
this.download.emit();
}
onClickClose(): void { onClickClose(): void {
this.closed.emit(); this.closed.emit();