mrr.sj.front/components/noData/noData.vue

57 lines
1023 B
Vue
Raw Normal View History

2026-03-24 11:45:13 +08:00
<template>
2026-03-25 13:29:04 +08:00
<view class="noData">
<image
:style="{ 'margin-top': top }"
src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/57309ff1-476c-43ec-8bad-f9e529e0a25b"
class="noData-img"
mode="widthFix"
></image>
<text class="noData-text">{{ tipText }}</text>
</view>
2026-03-24 11:45:13 +08:00
</template>
<script>
2026-03-25 13:29:04 +08:00
export default {
name: "noData",
data() {
return {};
},
props: {
tipText: {
type: String,
default: "暂无数据哦~",
},
top: {
type: String,
default: "154rpx",
},
},
components: {},
methods: {},
};
2026-03-24 11:45:13 +08:00
</script>
<style lang="less" scoped>
2026-03-25 13:29:04 +08:00
.noData {
display: flex;
align-items: center;
// justify-content: center;
flex-direction: column;
height: 100%;
.noData-img {
margin-top: 154rpx;
width: 348rpx;
height: 348rpx;
}
.noData-text {
width: 100%;
font-weight: 400;
font-size: 28rpx;
color: #666666;
line-height: 40rpx;
text-align: center;
font-style: normal;
}
}
</style>