ElEmptyCompat.vue 631 Bytes
<template>
  <div class="el-empty-compatible">
    <i class="el-icon-document el-empty-compatible__icon"></i>
    <p class="el-empty-compatible__description">
      {{ description }}
    </p>
  </div>
</template>

<script>
export default {
	name: "ElEmptyCompat",
	props: {
		description: { type: String, default: "暂无数据" },
	},
};
</script>

<style scoped>
.el-empty-compatible {
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	color: #909399;
}

.el-empty-compatible__icon {
	font-size: 64px;
}

.el-empty-compatible__description {
	margin-top: 16px;
	font-size: 14px;
}
</style>