|
25 | 25 | version="1.1"
|
26 | 26 | xmlns="http://www.w3.org/2000/svg"
|
27 | 27 | xmlns:xlink="http://www.w3.org/1999/xlink"
|
28 |
| - *ngIf="type === 'success'" |
29 |
| - class="devui-icon devui-icon-success" |
| 28 | + class="devui-icon" |
| 29 | + [ngClass]="type === 'danger'? 'devui-icon-error': 'devui-icon-' + type" |
30 | 30 | >
|
31 |
| - <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
| 31 | + <g *ngIf="type === 'success'" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
32 | 32 | <path fill-rule="nonzero" d="M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"></path>
|
33 | 33 | <polygon
|
34 | 34 | stroke-width="0.3"
|
35 | 35 | fill-rule="nonzero"
|
36 | 36 | points="6.82767602 11.5282799 3 7.24668779 3.89864233 6.37912367 6.82767602 9.04910002 12.2964408 4 13 4.64144383"
|
37 | 37 | ></polygon>
|
38 | 38 | </g>
|
39 |
| - </svg> |
40 |
| - <svg |
41 |
| - width="16px" |
42 |
| - height="16px" |
43 |
| - viewBox="0 0 16 16" |
44 |
| - version="1.1" |
45 |
| - xmlns="http://www.w3.org/2000/svg" |
46 |
| - xmlns:xlink="http://www.w3.org/1999/xlink" |
47 |
| - *ngIf="type === 'warning'" |
48 |
| - class="devui-icon devui-icon-warning" |
49 |
| - > |
50 |
| - <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
| 39 | + <g *ngIf="type === 'warning'" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
51 | 40 | <path
|
52 | 41 | class="devui-icon-warning-outer"
|
53 | 42 | d="M8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158 C15.2642579,14.9563203 15.0879506,15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343 C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049,0.0457280838 7.98165058,-0.153569987 8.51325441,0.127397589 C8.70423071,0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 Z"
|
|
59 | 48 | d="M8.87894737,13 L7.08947368,13 L7.08947368,11.2105263 L8.87894737,11.2105263 L8.87894737,13 Z M8.62102372,9.86842105 L7.32800539,9.86842105 L7,4.5 L8.96842105,4.5 L8.62102372,9.86842105 Z"
|
60 | 49 | ></path>
|
61 | 50 | </g>
|
62 |
| - </svg> |
63 |
| - <svg |
64 |
| - width="16px" |
65 |
| - height="16px" |
66 |
| - viewBox="0 0 16 16" |
67 |
| - version="1.1" |
68 |
| - xmlns="http://www.w3.org/2000/svg" |
69 |
| - xmlns:xlink="http://www.w3.org/1999/xlink" |
70 |
| - *ngIf="type === 'info'" |
71 |
| - class="devui-icon devui-icon-info" |
72 |
| - > |
73 |
| - <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
| 51 | + <g *ngIf="type === 'info'" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
74 | 52 | <g fill-rule="nonzero">
|
75 | 53 | <path
|
76 | 54 | class="devui-icon-info-outer"
|
|
83 | 61 | ></path>
|
84 | 62 | </g>
|
85 | 63 | </g>
|
86 |
| - </svg> |
87 |
| - <svg |
88 |
| - width="16px" |
89 |
| - height="16px" |
90 |
| - viewBox="0 0 16 16" |
91 |
| - version="1.1" |
92 |
| - xmlns="http://www.w3.org/2000/svg" |
93 |
| - xmlns:xlink="http://www.w3.org/1999/xlink" |
94 |
| - *ngIf="type === 'danger'" |
95 |
| - class="devui-icon devui-icon-error" |
96 |
| - > |
97 |
| - <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
| 64 | + <g *ngIf="type === 'danger'" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
98 | 65 | <g fill-rule="nonzero">
|
99 | 66 | <path
|
100 | 67 | class="devui-icon-error-outer"
|
|
0 commit comments