sl-express/project-wl-siji-uniapp-vue3/components/EmptyPage/index.vue

31 lines
584 B
Vue
Raw Normal View History

2023-09-04 16:40:17 +08:00
<template>
<view class="emptyBox">
<image src="../../static/sj_nodata.png" class="emptyImage" mode=""></image>
<view><text>{{emptyInfo}}</text></view>
</view>
</template>
<script setup>
// 获取父组件值、方法
const props = defineProps({
emptyInfo:{
type:String,
default: '',
}
})
</script>
<style>
@import url('@/styles/theme.scss');
.emptyBox{
padding: 288rpx 0 80rpx;
text-align: center;
color: var(--neutral-color-font);
font-size: var(--font-size-12);
}
.emptyImage {
width: 400rpx !important;
height: 240rpx !important;
}
</style>