@@ -193,43 +193,42 @@ const CModal = defineComponent({
193
193
onLeave : ( el , done ) => handleLeave ( el , done ) ,
194
194
onAfterLeave : ( el ) => handleAfterLeave ( el ) ,
195
195
} ,
196
- [
196
+ ( ) =>
197
197
props . visible &&
198
+ h (
199
+ 'div' ,
200
+ {
201
+ class : [
202
+ 'modal' ,
203
+ {
204
+ [ 'fade' ] : props . transition ,
205
+ } ,
206
+ attrs . class ,
207
+ ] ,
208
+ ref : modalRef ,
209
+ } ,
198
210
h (
199
211
'div' ,
200
212
{
201
213
class : [
202
- 'modal' ,
214
+ 'modal-dialog ' ,
203
215
{
204
- [ 'fade' ] : props . transition ,
216
+ 'modal-dialog-centered' : props . alignment === 'center' ,
217
+ [ `modal-fullscreen-${ props . fullscreen } -down` ] :
218
+ props . fullscreen && typeof props . fullscreen === 'string' ,
219
+ 'modal-fullscreen' : props . fullscreen && typeof props . fullscreen === 'boolean' ,
220
+ [ 'modal-dialog-scrollable' ] : props . scrollable ,
221
+ [ `modal-${ props . size } ` ] : props . size ,
205
222
} ,
206
- attrs . class ,
207
223
] ,
208
- ref : modalRef ,
209
224
} ,
210
225
h (
211
226
'div' ,
212
- {
213
- class : [
214
- 'modal-dialog' ,
215
- {
216
- 'modal-dialog-centered' : props . alignment === 'center' ,
217
- [ `modal-fullscreen-${ props . fullscreen } -down` ] :
218
- props . fullscreen && typeof props . fullscreen === 'string' ,
219
- 'modal-fullscreen' : props . fullscreen && typeof props . fullscreen === 'boolean' ,
220
- [ 'modal-dialog-scrollable' ] : props . scrollable ,
221
- [ `modal-${ props . size } ` ] : props . size ,
222
- } ,
223
- ] ,
224
- } ,
225
- h (
226
- 'div' ,
227
- { class : [ 'modal-content' , props . className ] , ref : modalContentRef } ,
228
- slots . default && slots . default ( ) ,
229
- ) ,
227
+ { class : [ 'modal-content' , props . className ] , ref : modalContentRef } ,
228
+ slots . default && slots . default ( ) ,
230
229
) ,
231
230
) ,
232
- ] ,
231
+ ) ,
233
232
) ,
234
233
props . backdrop &&
235
234
h ( CBackdrop , {
0 commit comments