File tree Expand file tree Collapse file tree 2 files changed +17
-24
lines changed
src/examples/src/modal/Modal Expand file tree Collapse file tree 2 files changed +17
-24
lines changed Original file line number Diff line number Diff line change 6
6
width : 100% ;
7
7
height : 100% ;
8
8
background-color : rgba (0 , 0 , 0 , 0.5 );
9
- display : table ;
9
+ display : flex ;
10
10
transition : opacity 0.3s ease;
11
11
}
12
12
13
- .modal-wrapper {
14
- display : table-cell;
15
- vertical-align : middle;
16
- }
17
-
18
13
.modal-container {
19
14
width : 300px ;
20
- margin : 0 px auto;
15
+ margin : auto;
21
16
padding : 20px 30px ;
22
17
background-color : # fff ;
23
18
border-radius : 2px ;
Original file line number Diff line number Diff line change 1
1
< Transition name ="modal ">
2
2
< div v-if ="show " class ="modal-mask ">
3
- < div class ="modal-wrapper ">
4
- < div class ="modal-container ">
5
- < div class ="modal-header ">
6
- < slot name ="header "> default header</ slot >
7
- </ div >
3
+ < div class ="modal-container ">
4
+ < div class ="modal-header ">
5
+ < slot name ="header "> default header</ slot >
6
+ </ div >
8
7
9
- < div class ="modal-body ">
10
- < slot name ="body "> default body</ slot >
11
- </ div >
8
+ < div class ="modal-body ">
9
+ < slot name ="body "> default body</ slot >
10
+ </ div >
12
11
13
- < div class ="modal-footer ">
14
- < slot name ="footer ">
15
- default footer
16
- < button
17
- class ="modal-default-button "
18
- @click ="$emit('close') "
19
- > OK</ button >
20
- </ slot >
21
- </ div >
12
+ < div class ="modal-footer ">
13
+ < slot name ="footer ">
14
+ default footer
15
+ < button
16
+ class ="modal-default-button "
17
+ @click ="$emit('close') "
18
+ > OK</ button >
19
+ </ slot >
22
20
</ div >
23
21
</ div >
24
22
</ div >
You can’t perform that action at this time.
0 commit comments