<template>
  <div class="c-status-wrapper">
    <warning
      v-if="error"
      v-on="$listeners"
    />
    <el-empty
      v-else
      description="暂无数据"
    />
  </div>
</template>

<script>

export default {
  name: 'StatusWrapper',
  props: {
    error: {
      type: [Boolean, String],
      default: false
    }
  }
}
</script>

<style lang="scss" scoped>
.c-status-wrapper {
  min-height: 300px;
  line-height: normal;
}
</style>
