<template>
  <div class="enabled" v-show="!enabled">
    <div class="enabled_box">
      <img class="enabled_img" src="@/assets/img/no_network@2x.png" />
      <span class="text">设备已停用，请联系管理员~</span>
    </div>
  </div>
</template>
  
  <script>
export default {
  props: {
    enabled: {
      type: Number,
      required: true,
      default: 1,
    },
  },
};
</script>
  
  <style lang="less" scoped>
.enabled {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  .enabled_box {
    width: 400px;
    height: 400px;
    border-radius: 4px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    font-size: 24px;
    .enabled_img {
      width: 100%;
      margin-bottom: 20px;
    }
  }
}
</style>