🧹 简化所有文件表格行样式

This commit is contained in:
2026-06-05 13:16:08 +08:00
parent 0a3246dcb4
commit df6b99961f
3 changed files with 22 additions and 63 deletions
+12 -59
View File
@@ -78,53 +78,21 @@
background: rgba(236, 244, 246, 0.76); background: rgba(236, 244, 246, 0.76);
} }
.data-table-2026 thead th:first-child { .data-table-2026 tbody tr {
border-radius: 30px 0 0 30px;
}
.data-table-2026 thead th:last-child {
border-radius: 0 30px 30px 0;
}
.file-row-2026 > td {
border-top: 1px solid rgba(199, 213, 216, 0.78);
border-bottom: 1px solid rgba(199, 213, 216, 0.78);
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 248, 0.92)),
radial-gradient(circle at 0% 0%, rgba(129, 163, 174, 0.18), transparent 32%);
box-shadow: 0 12px 28px rgba(126, 149, 154, 0.2);
transition: transition:
background 220ms ease, background-color 180ms ease,
border-color 220ms ease, opacity 180ms ease;
box-shadow 220ms ease;
} }
.file-row-2026 > td:first-child { .data-table-2026 tbody tr:hover {
border-left: 1px solid rgba(199, 213, 216, 0.78); background: rgba(226, 236, 238, 0.46);
border-radius: 30px 0 0 30px;
} }
.file-row-2026 > td:last-child { .data-table-2026 tbody tr.is-selected {
border-right: 1px solid rgba(199, 213, 216, 0.78); background: rgba(213, 228, 230, 0.72);
border-radius: 0 30px 30px 0;
} }
.file-row-2026:hover > td { .data-table-2026 tbody tr.is-muted {
border-color: rgba(126, 162, 173, 0.9);
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(230, 241, 244, 0.96)),
radial-gradient(circle at 0% 0%, rgba(112, 151, 164, 0.22), transparent 34%);
box-shadow: 0 18px 38px rgba(115, 142, 149, 0.3);
}
.file-row-2026.is-selected > td {
border-color: rgba(112, 151, 164, 0.96);
background:
linear-gradient(135deg, rgba(236, 246, 249, 0.98), rgba(219, 235, 240, 0.96)),
radial-gradient(circle at 0% 0%, rgba(91, 135, 151, 0.2), transparent 36%);
}
.file-row-2026.is-muted > td {
opacity: 0.74; opacity: 0.74;
} }
@@ -132,27 +100,12 @@
background: rgba(31, 45, 52, 0.82); background: rgba(31, 45, 52, 0.82);
} }
.dark .file-row-2026 > td { .dark .data-table-2026 tbody tr:hover {
border-color: rgba(68, 86, 94, 0.82); background: rgba(45, 71, 81, 0.42);
background:
linear-gradient(135deg, rgba(35, 50, 57, 0.96), rgba(25, 38, 45, 0.94)),
radial-gradient(circle at 0% 0%, rgba(101, 139, 154, 0.18), transparent 34%);
box-shadow: 0 14px 30px rgba(4, 10, 14, 0.32);
} }
.dark .file-row-2026:hover > td { .dark .data-table-2026 tbody tr.is-selected-dark {
border-color: rgba(113, 153, 168, 0.72); background: rgba(42, 64, 72, 0.68);
background:
linear-gradient(135deg, rgba(40, 58, 66, 0.98), rgba(28, 43, 51, 0.96)),
radial-gradient(circle at 0% 0%, rgba(105, 150, 166, 0.24), transparent 36%);
box-shadow: 0 18px 38px rgba(4, 10, 14, 0.48);
}
.dark .file-row-2026.is-selected-dark > td {
border-color: rgba(121, 161, 176, 0.82);
background:
linear-gradient(135deg, rgba(42, 62, 72, 0.98), rgba(29, 48, 58, 0.96)),
radial-gradient(circle at 0% 0%, rgba(117, 166, 184, 0.22), transparent 36%);
} }
.bg-indigo-50, .bg-indigo-50,
+9 -3
View File
@@ -7,8 +7,11 @@
{{ title }} {{ title }}
</h3> </h3>
</div> </div>
<div class="overflow-x-auto px-3 pb-3"> <div class="overflow-x-auto">
<table class="min-w-full border-separate border-spacing-y-3"> <table
class="min-w-full divide-y"
:class="[isDarkMode ? 'divide-[#31454d]' : 'divide-[#d7e3e5]']"
>
<thead> <thead>
<tr> <tr>
<th v-for="header in headers" :key="header" <th v-for="header in headers" :key="header"
@@ -18,7 +21,10 @@
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody
class="divide-y"
:class="[isDarkMode ? 'divide-[#31454d]/70' : 'divide-[#d7e3e5]/80']"
>
<slot name="body"></slot> <slot name="body"></slot>
</tbody> </tbody>
</table> </table>
+1 -1
View File
@@ -391,7 +391,7 @@
<tr <tr
v-for="file in tableData" v-for="file in tableData"
:key="file.id" :key="file.id"
class="file-row-2026 transition-all duration-200 hover:-translate-y-0.5" class="transition-colors duration-200"
:class="[ :class="[
selectedFileIds.has(file.id) selectedFileIds.has(file.id)
? isDarkMode ? isDarkMode