|
1 | 1 | <div class="devui-alert devui-alert-{{ type }} {{ cssClass }}" *ngIf="!hide"> |
2 | | - <div class="devui-close" (click)="close()" *ngIf="closeable"> |
3 | | - <svg |
4 | | - width="10px" |
5 | | - height="10px" |
6 | | - viewBox="0 0 10 10" |
7 | | - version="1.1" |
8 | | - xmlns="http://www.w3.org/2000/svg" |
9 | | - xmlns:xlink="http://www.w3.org/1999/xlink" |
10 | | - > |
11 | | - <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
12 | | - <g transform="translate(-3.000000, -3.000000)" fill-rule="nonzero"> |
13 | | - <path |
14 | | - d="M11.6426,3.19816936 C11.9239974,2.91574512 12.4131626,2.93784891 12.7352108,3.24751057 C13.0571998,3.5572302 13.0901298,4.03723416 12.8087324,4.31965839 L9.14064666,7.99900183 L12.8087324,11.6803416 C13.0645482,11.9370909 13.0605893,12.3571292 12.8158402,12.6640749 L12.7352108,12.7524894 C12.4131626,13.0621511 11.9239974,13.0842548 11.6426,12.8018306 L8,9.14489021 L4.35740003,12.8018306 C4.10158422,13.05858 3.6740594,13.0636532 3.35648225,12.8298003 L3.26478919,12.7524894 C2.94280021,12.4427698 2.90987023,11.9627658 3.19126762,11.6803416 L6.8583349,7.99900183 L3.19126762,4.31965839 C2.93545181,4.06290908 2.93941068,3.64287076 3.18415975,3.3359251 L3.26478919,3.24751057 C3.58683735,2.93784891 4.07600264,2.91574512 4.35740003,3.19816936 L8,6.85411161 L11.6426,3.19816936 Z" |
15 | | - ></path> |
16 | | - </g> |
17 | | - </g> |
18 | | - </svg> |
19 | | - </div> |
20 | 2 | <span class="devui-alert-icon" *ngIf="showIcon !== false && type !== 'simple'"> |
21 | 3 | <svg |
22 | 4 | width="16px" |
|
76 | 58 | </g> |
77 | 59 | </svg> |
78 | 60 | </span> |
79 | | - <ng-content></ng-content> |
| 61 | + <div class="devui-alert-carousel-container"> |
| 62 | + <div |
| 63 | + #carouselContainer |
| 64 | + class="devui-alert-carousel-box" |
| 65 | + (mouseenter)="clearScheduledTransition()" |
| 66 | + (mouseleave)="autoScheduleTransition()" |
| 67 | + > |
| 68 | + <ng-content></ng-content> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + <div class="devui-alert-operation-container"> |
| 72 | + <div *ngIf="carouselNum > 1" class="devui-alert-carousel-num"> |
| 73 | + <span>{{ currentIndex }}/{{ carouselNum }}</span> |
| 74 | + <span class="devui-alert-carousel-button" (click)="next()"> |
| 75 | + <svg |
| 76 | + width="12px" |
| 77 | + height="12px" |
| 78 | + viewBox="0 0 16 16" |
| 79 | + version="1.1" |
| 80 | + xmlns="http://www.w3.org/2000/svg" |
| 81 | + xmlns:xlink="http://www.w3.org/1999/xlink" |
| 82 | + > |
| 83 | + <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
| 84 | + <path |
| 85 | + d="M2.64644661,5.14644661 C2.82001296,4.97288026 3.08943736,4.95359511 3.2843055,5.08859116 L3.35355339,5.14644661 L7.999,9.793 L12.6464466,5.14644661 C12.820013,4.97288026 13.0894374,4.95359511 13.2843055,5.08859116 L13.3535534,5.14644661 C13.5271197,5.32001296 13.5464049,5.58943736 13.4114088,5.7843055 L13.3535534,5.85355339 L8.35355339,10.8535534 C8.17998704,11.0271197 7.91056264,11.0464049 7.7156945,10.9114088 L7.64644661,10.8535534 L2.64644661,5.85355339 C2.45118446,5.65829124 2.45118446,5.34170876 2.64644661,5.14644661 Z" |
| 86 | + fill-rule="nonzero" |
| 87 | + ></path> |
| 88 | + </g> |
| 89 | + </svg> |
| 90 | + </span> |
| 91 | + </div> |
| 92 | + <ng-template [ngTemplateOutlet]="operationTemplate" [ngTemplateOutletContext]="{ close: close }"> </ng-template> |
| 93 | + <div class="devui-close" (click)="close()" *ngIf="closeable"> |
| 94 | + <svg |
| 95 | + width="10px" |
| 96 | + height="10px" |
| 97 | + viewBox="0 0 10 10" |
| 98 | + version="1.1" |
| 99 | + xmlns="http://www.w3.org/2000/svg" |
| 100 | + xmlns:xlink="http://www.w3.org/1999/xlink" |
| 101 | + > |
| 102 | + <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
| 103 | + <g transform="translate(-3.000000, -3.000000)" fill-rule="nonzero"> |
| 104 | + <path |
| 105 | + d="M11.6426,3.19816936 C11.9239974,2.91574512 12.4131626,2.93784891 12.7352108,3.24751057 C13.0571998,3.5572302 13.0901298,4.03723416 12.8087324,4.31965839 L9.14064666,7.99900183 L12.8087324,11.6803416 C13.0645482,11.9370909 13.0605893,12.3571292 12.8158402,12.6640749 L12.7352108,12.7524894 C12.4131626,13.0621511 11.9239974,13.0842548 11.6426,12.8018306 L8,9.14489021 L4.35740003,12.8018306 C4.10158422,13.05858 3.6740594,13.0636532 3.35648225,12.8298003 L3.26478919,12.7524894 C2.94280021,12.4427698 2.90987023,11.9627658 3.19126762,11.6803416 L6.8583349,7.99900183 L3.19126762,4.31965839 C2.93545181,4.06290908 2.93941068,3.64287076 3.18415975,3.3359251 L3.26478919,3.24751057 C3.58683735,2.93784891 4.07600264,2.91574512 4.35740003,3.19816936 L8,6.85411161 L11.6426,3.19816936 Z" |
| 106 | + ></path> |
| 107 | + </g> |
| 108 | + </g> |
| 109 | + </svg> |
| 110 | + </div> |
| 111 | + </div> |
80 | 112 | </div> |
0 commit comments