Skip to content

Commit

Permalink
feat: <toolset> make slide works
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 26, 2020
1 parent bd2ce8c commit ca6b673
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/shared/toolset/toolset.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<div *ngIf="option">
<div [ngSwitch]="true" [ngStyle]="buildStyle(option)">
<div *ngSwitchCase="option.type === 'slider'" >
<mat-slider step="4" tickInterval="3"></mat-slider>
<div *ngFor="let item of option.data" class="slider">
<div class="name">{{item.item.text}}</div>
<div class="slide"><mat-slider step="5"></mat-slider></div>
</div>
</div>
<div *ngSwitchDefault>
<h1>it works</h1>
Expand Down
15 changes: 15 additions & 0 deletions src/app/shared/toolset/toolset.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.slider {
width: 100%;

div {
display: inline-block;
}

.name {
width: 100px;
}

.slide {
width: auto;
}
}

0 comments on commit ca6b673

Please sign in to comment.