<template>
<div class="data-empty">
  <div class="wrapper">
    <img :src=" domain + imgUrl" alt="" />
    <p>{{ content }}</p>
  </div>
</div>
</template>

<script>
import ossConfig from '@/assets/ossConfig'
export default {
    name: 'Empty',
    props: {
        content: {
            type: String,
            default: '暂无数据'
        },
        imgUrl: {
            type: String,
            default: `/Common/empty.png`
        }
    },
    data () {
        return {
            domain: ossConfig.staticResourcesFileBucket.domain
        }
    }
}
</script>

<style lang="stylus" scoped>
.data-empty
  height 100%
  display flex
  justify-content center
  padding-top 100px
  .wrapper
    text-align center
    img
      width 100px
      height 82px
    p
      margin-bottom 0
      text-align center
</style>
