mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
27 lines
560 B
Vue
27 lines
560 B
Vue
<script setup lang="ts">
|
|
import { PropType } from "vue";
|
|
import { ListItem } from "./data";
|
|
import { useI18n } from "vue-i18n";
|
|
import NoticeItem from "./noticeItem.vue";
|
|
|
|
const props = defineProps({
|
|
list: {
|
|
type: Array as PropType<Array<ListItem>>,
|
|
default: () => []
|
|
}
|
|
});
|
|
|
|
const { t } = useI18n();
|
|
</script>
|
|
|
|
<template>
|
|
<div v-if="props.list.length">
|
|
<NoticeItem
|
|
v-for="(item, index) in props.list"
|
|
:key="index"
|
|
:noticeItem="item"
|
|
/>
|
|
</div>
|
|
<el-empty v-else :description="t('status.pureNoMessage')" />
|
|
</template>
|