File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
mojaglobal-ui/src/components/ModalBox Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 11<template >
2- <div class =" box-wrapper box-alert-mask" @click =" toggle" >
2+ <div class =" box-wrapper box-alert-mask modal-common" >
3+ <div class =" dark modal-common" @click =" toggle" ></div >
34 <div class =" box-alert-wrapper" >
45 <slot ></slot >
56 </div >
1213 components: {
1314 },
1415 props: {
15- toggle: { type: Function ,required: true },
16+ toggle: { type: Function ,required: true },
1617 }
1718 }
1819
1920 </script >
2021
2122<style scoped>
2223 .box-wrapper {
24+ z-index : 1 ;
25+ }
26+
27+ .modal-common {
2328 width : 100% ;
2429 height : 100% ;
2530 min-height : 100% ;
2631 display : flex ;
2732 flex-direction : column ;
2833 align-items : center ;
29- justify-content :center
34+ justify-content : center ;
3035 }
3136
32-
37+ .dark {
38+ z-index : -1 ;
39+ position : fixed ;
40+ cursor : pointer ;
41+ }
3342
3443 .box-alert-mask {
3544 position : fixed ;
36- z-index : 9999 ;
3745 top : 0 ;
3846 left : 0 ;
3947 width : 100% ;
You can’t perform that action at this time.
0 commit comments