improve ui

This commit is contained in:
liangping
2023-05-18 21:20:19 +08:00
parent 0122fe89f6
commit be6cd1af7c
12 changed files with 66 additions and 39 deletions
@@ -22,7 +22,7 @@ const header = computed(() => {
<VTable
v-if="header.length > 0"
density="compact"
height="300px"
:height="value.length > 5? '300px': ''"
fixed-header
hover
>
+2 -2
View File
@@ -5,10 +5,10 @@ const props = defineProps(['value']);
</script>
<template>
<div class="overflow-x-auto">
<table class="table w-full text-sm">
<table class="table table-compact w-full text-sm">
<tbody>
<tr v-for="(v, k) of value">
<td class="text-capitalize" style="max-width: 100px">{{ String(k).replaceAll("_", " ") }}</td>
<td class="text-capitalize whitespace-break-spaces w-1/5" style="min-width: 180px;">{{ String(k).replaceAll("_", " ") }}</td>
<td>
<div
class="overflow-hidden w-auto whitespace-normal"