hz-zhhq-app/components/contentNone.vue

54 lines
816 B
Vue
Raw Normal View History

2025-01-22 10:53:47 +08:00
<template>
<view class="content-null" :style="'padding-top:'+padTop+'vh'" >
<image :src="icon" :style="'width:'+iconWidth+'px'" mode="widthFix"></image>
<view>{{title}}</view>
</view>
</template>
<script>
export default {
data() {
return {
};
},
props:{
title:{
type:String,
default:'暂无数据'
},
icon:{
type:String,
default:'/static/imgs/null-data.png'
},
iconWidth:{
type:Number,
default:100
},
padTop:{
type:Number,
default:25
}
}
}
</script>
<style >
.content-null{
padding-top:20vh;
/* height:400upx; */
text-align:center;
}
.content-null image{
width:200upx;
height:126upx;
}
.content-null view{
font-size:36upx;
line-height:50upx;
color:#999;
margin-top:10upx;
padding-right:20upx;
}
</style>