<template>
  <div class="Empty">
    <img src="./imgs/nomore.png" alt="" />
    <div class="text">{{ props.text }}</div>
  </div>
</template>

<script setup lang="ts">
const props = withDefaults(
  defineProps<{
    text?: string
  }>(),
  {
    text: "暂无内容"
  }
)
</script>

<style lang="scss" scoped>
.Empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  > img {
    width: 158px;
  }
  .text {
    margin-top: 6px;
    font-size: 16px;
    color: #999999;
  }
}
</style>
