-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
15 deletions.
There are no files selected for viewing
31 changes: 16 additions & 15 deletions
31
...kbench/browser/src/app/shared/components/extension-select/extension-select.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 |
---|---|---|
@@ -1,19 +1,20 @@ | ||
<ng-container *ngIf="extensionList.length; else empty"> | ||
<div class="flex"> | ||
<div *ngFor="let item of extensionList" class="px-2 w-1/4 h-14" (click)="selectExtension(item)" > | ||
<div | ||
[class.active]="extension === item.key" | ||
class="extension relative h-full w-full border rounded-md flex items-center justify-center" | ||
[ngStyle]="{'background-image': 'url(' + item.icon + ')'}" | ||
nzTooltipPlacement="bottom" | ||
[nzTooltipTitle]="item.description" | ||
nz-tooltip> | ||
<span *ngIf="!item.icon">{{ item.label }}</span> | ||
<i class="absolute right-0 bottom-0" nz-icon nzType="check" nzTheme="outline"></i> | ||
</div> | ||
</div> | ||
<div class="flex"> | ||
<div *ngFor="let item of extensionList" class="px-2 w-1/4 h-14" (click)="selectExtension(item)"> | ||
<div | ||
[class.active]="extension === item.key" | ||
class="extension relative h-full w-full border rounded-md flex items-center justify-center" | ||
[ngStyle]="{ 'background-image': 'url(' + item.icon + ')' }" | ||
nzTooltipPlacement="bottom" | ||
[nzTooltipTitle]="item.description" | ||
nz-tooltip | ||
> | ||
<span *ngIf="!item.icon">{{ item.label }}</span> | ||
<i class="absolute right-0 bottom-0" nz-icon nzType="check" nzTheme="outline"></i> | ||
</div> | ||
</div> | ||
</div> | ||
</ng-container> | ||
<ng-template #empty> | ||
<span class="text">该功能需要插件支持,请移步至插件广场下载</span> | ||
</ng-template> | ||
<span class="text">该功能需要插件支持,请移步至插件广场下载</span> | ||
</ng-template> |