@@ -166,7 +166,7 @@ export default defineComponent({
166
166
}
167
167
},
168
168
[
169
- status && state . theme === ' saas '
169
+ status
170
170
? h (
171
171
' div' ,
172
172
{
@@ -188,18 +188,7 @@ export default defineComponent({
188
188
{
189
189
class: ' tiny-modal__title'
190
190
},
191
- [
192
- typeof status === ' string'
193
- ? h (STATUS_MAPPING_COMPINENT [status .toUpperCase ()], {
194
- class: [constants .STATUS_MAPPING_CLASSS [status .toUpperCase ()]],
195
- style: ' display: inline-block; margin-right: 5px;'
196
- })
197
- : h (status , {
198
- class: [' tiny-modal__status-icon' ],
199
- style: ' display: inline-block; margin-right: 5px;'
200
- }),
201
- h (' span' , title || t (' ui.alert.title' ))
202
- ]
191
+ title || t (' ui.alert.title' )
203
192
),
204
193
resize
205
194
? h (zoomLocat ? iconMinscreenLeft () : iconFullscreenLeft (), {
@@ -224,14 +213,14 @@ export default defineComponent({
224
213
class: [' tiny-modal__body' , type === ' message' ? ' is-message' : ' ' ]
225
214
},
226
215
[
227
- status && state . theme !== ' saas '
216
+ type === ' message '
228
217
? h (
229
218
' div' ,
230
219
{
231
220
class: ' tiny-modal__status-wrapper'
232
221
},
233
222
[
234
- typeof status === ' string' && type === ' message '
223
+ typeof status === ' string'
235
224
? h (STATUS_MAPPING_COMPINENT [status .toUpperCase ()], {
236
225
class: [constants .STATUS_MAPPING_CLASSS [status .toUpperCase ()]]
237
226
})
@@ -310,6 +299,18 @@ export default defineComponent({
310
299
)
311
300
]
312
301
: [
302
+ type === ' confirm'
303
+ ? h (
304
+ Button ,
305
+ {
306
+ on: {
307
+ click: this .cancelEvent
308
+ },
309
+ props: { ... cancelButtonProps }
310
+ },
311
+ cancelButtonText
312
+ )
313
+ : null ,
313
314
h (
314
315
Button ,
315
316
{
@@ -322,19 +323,7 @@ export default defineComponent({
322
323
}
323
324
},
324
325
confirmButtonText
325
- ),
326
- type === ' confirm'
327
- ? h (
328
- Button ,
329
- {
330
- on: {
331
- click: this .cancelEvent
332
- },
333
- props: { ... cancelButtonProps }
334
- },
335
- cancelButtonText
336
- )
337
- : null
326
+ )
338
327
]
339
328
)
340
329
: null ,
0 commit comments