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.
65 lines
976 B
65 lines
976 B
<!--
|
|
* @Author: ch
|
|
* @Date: 2022-03-20 13:11:55
|
|
* @LastEditors: ch
|
|
* @LastEditTime: 2022-03-29 15:04:36
|
|
* @Description: file content
|
|
-->
|
|
<template>
|
|
<view class="empty">
|
|
<slot name="icon">
|
|
<image class="empty--icon" :src="icon" mode="widthFix"></image>
|
|
</slot>
|
|
<view class="empty--tips">{{ tips }}</view>
|
|
<slot name="btn"></slot>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data(){
|
|
return {
|
|
}
|
|
},
|
|
/**
|
|
* 组件的属性列表
|
|
* 用于组件自定义设置
|
|
*/
|
|
props: {
|
|
icon : {
|
|
type : String,
|
|
default : require('@/static/message/empty.png')
|
|
},
|
|
// 提示的问题
|
|
tips: {
|
|
type: String,
|
|
default: "亲,暂无相关数据",
|
|
}
|
|
},
|
|
mounted(){
|
|
},
|
|
|
|
methods: {},
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.empty {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
padding: 50rpx;
|
|
text-align: center;
|
|
background: #fff;
|
|
|
|
&--tips {
|
|
font-size: 26rpx;
|
|
color: #999;
|
|
margin: 30rpx 0 50rpx;
|
|
}
|
|
|
|
&--icon {
|
|
width: 280rpx;
|
|
}
|
|
}
|
|
</style>
|