<template>
  <div class="empty">
    <img src="./empty.svg"/>
    <slot v-if="$slots.default"/>
    <p v-else>{{desc}}</p>
  </div>
</template>
<script>
import tempalteManager from '@/views/categroyManager/specialSetup/tempalteManager.vue'
export default {
  components: { tempalteManager },
  name: 'empty',
  props: {
    desc: {
      type: String,
      default: '暂无数据'
    }
  }
}
</script>
<style lang="less" scoped>
  .empty{
    text-align: center;
    >img {
      width: 100px;
    }
    >p{
      font-size: 16px;
      line-height: 1.8;
    }
  }
</style>
