fix: polish (#390)

This commit is contained in:
Fine0830
2024-04-16 17:52:51 +08:00
committed by GitHub
parent 7f6e4d09c0
commit 731d652a7d
5 changed files with 26 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. -->
<template>
<div class="chart-table">
<div class="chart-table" v-if="dataKeys.length">
<div class="row header flex-h">
<div
v-for="key in dataKeys[0]"
@@ -41,6 +41,7 @@ limitations under the License. -->
</div>
</div>
</div>
<div class="no-data" v-else>No Data</div>
</template>
<script lang="ts" setup>
import { computed } from "vue";
@@ -131,4 +132,13 @@ limitations under the License. -->
width: 50%;
}
}
.no-data {
font-size: $font-size-smaller;
height: 100%;
align-items: center;
justify-content: center;
display: flex;
color: var(--text-color-placeholder);
}
</style>