mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-04-24 23:47:17 +08:00
24 lines
484 B
Vue
24 lines
484 B
Vue
<script setup lang="ts">
|
|
import { PropType } from "vue";
|
|
import { ListItem } from "./data";
|
|
import NoticeItem from "./noticeItem.vue";
|
|
|
|
const props = defineProps({
|
|
list: {
|
|
type: Array as PropType<Array<ListItem>>,
|
|
default: () => []
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<div v-if="props.list.length">
|
|
<NoticeItem
|
|
v-for="(item, index) in props.list"
|
|
:noticeItem="item"
|
|
:key="index"
|
|
/>
|
|
</div>
|
|
<el-empty v-else description="暂无数据" />
|
|
</template>
|