<template>
  <div class="network_error" v-show="isShowError">
    <div class="network_error_box">
      <img class="network_error_img" src="../assets/img/网络出错@3x.png" />
    </div>
  </div>
</template>

<script>
export default {
  props: {
    isShowError: {
      type: Boolean,
      required: true,
      default: false,
    },
  },
};
</script>

<style lang="less" scoped>
.network_error {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  .network_error_box {
    width: 400px;
    height: 400px;
    background-color: #fff;
    border-radius: 4px;
    .network_error_img {
      width: 100%;
      height: 100%;
    }
  }
}
</style>