<script setup>
import { onMounted, ref } from "vue";
const props = defineProps({
  loadingShow: {
    type: Boolean,
    required: true,
    default: false,
  },
});
</script>

<template>
  <div class="container-loading" v-if="loadingShow">
    <img src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/loading_all.gif" alt="" />
  </div>
</template>

<style lang="scss" scoped>
.container-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  // background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  img {
    width: 110px;
    height: 110px;
  }
}
</style>
