<template>
    <view class="ie-empty">
        <slot v-if="value"></slot>
        <view v-else-if="!loading" class="w-full box-border flex flex-col gap-50 items-center justify-center p-40">
            <z-paging-empty-view :emptyViewFixed="false" :empty-view-text="text" :empty-view-img="image"/>
        </view>
    </view>
</template>
<script lang="ts" setup>
type Props = {
    value: boolean;
    loading: boolean;
    text?: string;
    image?: string;
}
const props = withDefaults(defineProps<Props>(), {
    value: false,
    loading: false
});
</script>
<style lang="scss" scoped></style>