33 lines
681 B
Vue
33 lines
681 B
Vue
|
|
<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>
|