新增nodata组件 和 组织管理

This commit is contained in:
LovableCat
2025-03-15 12:46:00 +08:00
parent 1efb34722f
commit d4ffb00fc5
4 changed files with 134 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<template>
<div class="bg-white w-full flex flex-col items-center py-[20px]">
<slot name="img">
<img
v-if="!hideImg"
class="block mb-[20px]"
width="300"
height="240"
src="/src/assets/imgs/jyh/nodata.png"
alt="NoData"
/>
</slot>
<slot>
<div>没有查询到数据</div>
</slot>
</div>
</template>
<script setup lang="ts">
const props = defineProps({
hideImg: {
type: Boolean,
default: false,
},
});
</script>
<style scoped lang="scss">
.bg-white {
background-color: #fff;
}
</style>