BasicEmpty.vue 584 字节
Newer Older
陈文彬 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<template>
  <Empty :image="image" :description="description" />
</template>
<script lang="ts">
  import { defineComponent } from 'vue';
  import { Empty } from 'ant-design-vue';

  import emptySrc from '/@/assets/images/page_null.png';

  export default defineComponent({
    extends: Empty as any,
    components: { Empty },
    props: {
      description: {
        type: String,
        default: '暂无内容',
      },
      image: {
        type: String,
        default: emptySrc,
        required: false,
      },
    },
    setup() {
      return {};
    },
  });
</script>