代码已上传至github github代码地址:https://github.com/Miofly/mio.git
HTML
<div v-show="modalStatus" class="mio-modal-mask"></div>
CSS
.mio-modal-mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 888;
transition: all 0.3s ease-in-out;
opacity: 1;
visibility: visible;
}