<template>
	<view class="empty-content">
		<image class="empty-content-image" :src="setSrc" mode="aspectFit"></image>
		<!-- <view class="empty-info">
			{{tit}}
		</view> -->
	</view>
</template>

<script>
	export default {
		props: {
			src: {
				type: String,
				default: 'espempty'
			},
			tit: {
				type: String,
				default: '暂无数据'
			}
		},

		data() {
			return {
				typeSrc: {
					espempty: 'data:image/png;base64,[encoded data, 25188 characters]'
				},
			}
		},

		computed: {
			setSrc() {
				return this.typeSrc[this.src];
			},
		}
	}
</script>

<style lang="scss">
	.empty-content {
		height: 100%;
		width: 100%;
		padding:0;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		
		// position: fixed;
		// left: 0;
		// top: 0;
		// right: 0;
		// bottom: 0;
		background: #FFFFFF;
		padding-bottom: 120upx;

		&-image {
			margin-top: 144rpx;
			width: 200upx;
			height: 200upx;
		}
		.empty-info{
			color: #555555;
			font-size: 28rpx;
		}
	}
</style>
