多租户商城-商户小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

72 lines
1.1 KiB

<!--
* @FileDescription: index
* @Author: kahu
* @Date: 2022/11/11
* @LastEditors: kahu
* @LastEditTime: 2022/11/11
-->
<template>
<view v-if="show" class="empty-content" :style="{
paddingTop: paddingTop+'rpx',
background: background
}">
<image :src="iconUrl" />
<p class="tips">
<slot>
暂无数据~
</slot>
</p>
</view>
</template>
<script>
export default {
name: "empty",
data() {
return {}
},
props:{
show:{
type:Boolean,
default:false
},
paddingTop:{
type:Number,
default:()=>500
},
background:{
type:String,
default:()=>'#f8f8f8'
},
iconUrl:{
type:String,
default:()=>'http://36.138.125.206:8081/ceres-local-file/static/images/searchEmpty.png'
}
},
computed:{
},
methods: {}
}
</script>
<style
lang="scss"
scoped
>
.empty-content{
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
image{
width:150rpx;
height: 150rpx;
}
.tips{
margin-top: 25rpx;
font-weight: bolder;
}
}
</style>