<template> <view class="empty flex flex-column j-center a-center"> <image style="width: 360rpx;" class="mb-4" v-if="iconSrc" :src="iconSrc" mode="widthFix" /> <text class="font-28">{{text}}</text> </view> </template> <script> export default { props: { iconSrc: { type: String, default: "" }, text: { type: String, default: "暂无数据" } } } </script> <style scoped> .empty { width: 100%; height: 100%; } </style>