<template>
    <div>
      <div class="nodata" :style="{backgroundColor:backgroundColor}">
        <div class="title" v-show="nodataTitle">
          <span>{{nodataTitle}}</span>
          <span class="title-right">详情<Icon type="ios-arrow-forward" style="margin-left:6px"/></span>
        </div>
        <div class="nodata-img">
          <img src="../../assets/images/noData.png">
        </div> 
        <!-- <div class="nodata-img" :class="{'show-title-img': !nodataTitle}">
          <img src="../../assets/images/noData.png">
        </div>      -->
      </div>
    </div>
</template>
<script>
export default {
    name: 'NoData',
    props: {
      nodataTitle: '',
      backgroundColor: {
        type: String,
        default: () => {
          return ''
        }
      },
      id: ''
    },
}
</script>
<style scoped>
 .nodata{
    height: 100%;
    width: 100% !important;
    /* background-color: #081c43 !important; */
  }
  .title {
    color: #ec9c45;
    font-size: 14px;
    color: #FEF0F0;
    font-weight: bold;
    height: 50px;
    background: #14316A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
  }
  .title-right {
    color: #D7790C;
    font-size: 12px;
    cursor: pointer;
  }
  .nodata-img {
    position: relative;
    height: calc(100% - 50px);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .show-title-img {
    height: 100%;
  }
</style>



