新增nodata组件 和 组织管理
This commit is contained in:
32
src/components/NoData/NoData.vue
Normal file
32
src/components/NoData/NoData.vue
Normal 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>
|
||||
Reference in New Issue
Block a user