noData.vue 860 Bytes
<template>
  <div class="scrm-sub-client-container">
    <!-- 有图标无数据文字情况 -->
    <div class="nodata" v-if="type == 'hasIconText'">
      <img src="@/assets/clientDataOverview/nodata.png" alt="" />
      <p>暂无数据</p>
    </div>
    <!-- 没有图标有无数据文字 -->
    <div class="nodata" v-if="type == 'hasText'">
      <p>暂无数据</p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    type: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.scrm-sub-client-container {
  .nodata {
    position: absolute;
    text-align: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
    p {
      height: 22px;
      font-size: 14px;

      font-weight: 400;
      color: #000000;
      line-height: 22px;
    }
  }
}
</style>