<template>
  <div>
    <van-row v-if="list && list != null && list.length == 0" type="flex" justify="center">
      <van-col span="12">
        <img :src='src' width="100%" class="company_dept_img"/>
        <p class="text_center color_ccc empty-data__desc">{{detail_text}}</p>
      </van-col>
    </van-row>
  </div>
</template>

<script>
  export default {
    name: "noDataIcon",
    model: {
      prop: 'list',
      event: 'value'
    },
    props: {
      list: {
        type: Array,
        default: () => {
          return []
        }
      },
      src: {
        type: String,
        default:'static/images/new_noData.png'
      },
      detail_text: {
        type: String,
        default: '暂无内容'
      }
    },
    data(){
      return {
      }
    },
    created(){
    },
    methods:{
    }
  }
</script>

<style scoped>
.empty-data__desc {
  margin-bottom: 0.4rem;
  font-size: 0.28rem;
  color: #666;
}
</style>
