Skip to content

Commit

Permalink
style: layout builder
Browse files Browse the repository at this point in the history
  • Loading branch information
biaogebusy committed Mar 23, 2024
1 parent db63f22 commit 83544a3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<app-bg-img [attr.data-path]="'bg'" [content]="layout.bg" *ngIf="layout.bg"></app-bg-img>
<div class="block" [fxLayout]="layout.direction" [fxLayoutAlign]="layout.layoutAlign"
[ngStyle]="layout.style">
<div class="item" *ngFor="let item of layout.elements;index as index">
<div class="item item-{{item.type}}" *ngFor="let item of layout.elements;index as index">
<div class="actions" *ngIf="isBuilderMode$ | async">
<app-btn matTooltip="上移" *ngIf="index > 0 && index < layout.elements.length"
(click)="onUpDown('up',i,index)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
max-width: 100%;
padding: 10px;
box-sizing: border-box;
&.item-divider,
&.item-layout-builder {
width: 100%;
}
> .actions {
display: none;
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { getImg } from '../factory/getImg';
import { getIcon } from '../factory/getIcon';
import { getAnimate } from '../factory/getAnimate';
import { UtilitiesService } from '@core/service/utilities.service';
import { getDivider } from '../factory/getDivider';

@Component({
selector: 'app-layout-builder',
Expand Down Expand Up @@ -204,6 +205,9 @@ export class LayoutBuilderComponent
case 'layout-builder':
fields = getBlockSetting(widget);
break;
case 'divider':
fields = getDivider(widget);
break;
default:
fields = getNone(widget, [animateConfig]);
}
Expand Down

0 comments on commit 83544a3

Please sign in to comment.