31 lines
543 B
Vue
31 lines
543 B
Vue
<template>
|
|
<view class="empty-state">
|
|
<image class="empty-img" src="/static/ic_none.png" mode="aspectFit" />
|
|
<text class="empty-text">{{ text || '暂无数据' }}</text>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
defineProps({
|
|
text: { type: String, default: '' }
|
|
})
|
|
</script>
|
|
|
|
<style scoped>
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 120rpx 0 80rpx;
|
|
}
|
|
.empty-img {
|
|
width: 240rpx;
|
|
height: 240rpx;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
.empty-text {
|
|
font-size: 28rpx;
|
|
color: #999;
|
|
}
|
|
</style>
|