<template>
  <div
    class="layout-lock-screen-img"
    :class="{ 'layout-lock-screen-blur': isBlur }"
  ></div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "lock-screen-mask",
  props: {
    isBlur: {
      type: Boolean, // 模糊效果
      required: true,
    },
  },
});
</script>

<style scoped lang="scss">
.layout-lock-screen-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.layout-lock-screen-blur {
  // 模糊动画
  filter: blur(5px);
  transform: scale(1.01);
  transition: all 0.1s 0.1s ease-in-out;
}
.layout-lock-screen-img {
  @extend .layout-lock-screen-fixed;
  background-image: url("https://gitee.com/lyt-top/vue-next-admin-images/raw/master/images/03.jpg");
  background-size: 100% 100%;
  z-index: 9999991;
}
</style>
