<!--
|
* @Author : yuan
|
* @Date : 2026-01-09 15:06:02
|
* @LastEditors : yuan
|
* @LastEditTime : 2026-01-09 15:10:44
|
* @FilePath : \applications\drone-command\src\views\dataCockpit\components\EmptyState.vue
|
* @Description :
|
* Copyright 2026 OBKoro1, All Rights Reserved.
|
* 2026-01-09 15:06:02
|
-->
|
<template>
|
<div class="empty-state">
|
<div class="empty-content">
|
<img :src="noDataBg" alt="暂无数据">
|
<span class="empty-text">暂无数据</span>
|
</div>
|
</div>
|
</template>
|
|
<script setup>
|
import noDataBg from '@/assets/images/no-data-bg.png'
|
</script>
|
|
<style scoped lang="scss">
|
.empty-state {
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
flex: 1;
|
width: 100%;
|
height: 100%;
|
min-height: 220px;
|
|
.empty-content {
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
flex-direction: column;
|
text-align: center;
|
}
|
|
img {
|
max-width: 78%;
|
max-height: 78%;
|
object-fit: contain;
|
}
|
|
.empty-text {
|
font-family: Source Han Sans CN, Source Han Sans CN;
|
font-weight: 400;
|
font-size: 14px;
|
color: #9E9EBA;
|
line-height: 18px;
|
text-align: center;
|
font-style: normal;
|
text-transform: none;
|
}
|
}
|
</style>
|