<template>
    <div>
      <div class="nodata" :style="{backgroundColor:backgroundColor}">
        <div class="title" v-show="nodataTitle"><i class="iconfont icon-xiayibu" style="font-size:15px;margin-right:6px;"></i>{{nodataTitle}}</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 ''
        }
      }
    },
}
</script>
<style scoped>
 .nodata{
    height: 100%;
    width: 100% !important;
    /* background-color: #081c43 !important; */
  }
  .title {
    text-align: left;
    color: #ec9c45;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 0 0 14px;
  }
  .nodata-img {
    position: relative;
    height: calc(100% - 30px);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .show-title-img {
    height: 100%;
  }
</style>



