<!--
 * @Description: 遮罩层组件
 * @Author: liusheng
 * @Date: 2024-07-07 16:30:56
-->
<template>
  <div class="mask"></div>
</template>

<script>
export default {
  name: 'MaskLayer',
}
</script>

<style scoped>
.mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1); /* 半透明背景 */
  z-index: 999; /* 确保遮罩层在弹出框之上 */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* 如果你希望遮罩层不响应滚动，添加以下 CSS */
  overflow: hidden;
  touch-action: none;
}
</style>
