💎 优化所有文件卡片样式

This commit is contained in:
orion committed 2026-06-05 12:45:07 +08:00
1 parent 8201f526f0
commit 4eb2146206
4 files changed
+101 -23

No files matched your search

+9 -12
View File
@@ -1,14 +1,15 @@
<template>
<div class="rounded-lg shadow-sm overflow-hidden transition-all duration-300"
:class="[isDarkMode ? 'bg-gray-800 bg-opacity-70' : 'bg-white']">
<div class="px-6 py-4 border-b" :class="[isDarkMode ? 'border-gray-700' : 'border-gray-200']">
<div
class="data-table-2026 theme-2026-card theme-2026-card-hover overflow-hidden rounded-[30px] shadow-md transition-all duration-300 hover:-translate-y-0.5 hover:shadow-lg"
>
<div class="px-6 py-4 border-b" :class="[isDarkMode ? 'border-gray-700/80' : 'border-[#d9e4e6]']">
<h3 class="text-lg font-medium" :class="[isDarkMode ? 'text-white' : 'text-gray-800']">
{{ title }}
</h3>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y" :class="[isDarkMode ? 'divide-gray-700' : 'divide-gray-200']">
<thead :class="[isDarkMode ? 'bg-gray-900/50' : 'bg-gray-50']">
<div class="overflow-x-auto px-3 pb-3">
<table class="min-w-full border-separate border-spacing-y-3">
<thead>
<tr>
<th v-for="header in headers" :key="header"
class="px-6 py-3.5 text-left text-xs font-medium uppercase tracking-wider"
@@ -17,11 +18,7 @@
</th>
</tr>
</thead>
<tbody :class="[
isDarkMode
? 'bg-gray-800/50 divide-y divide-gray-700'
: 'bg-white divide-y divide-gray-200'
]">
<tbody>
<slot name="body"></slot>
</tbody>
</table>
@@ -41,4 +38,4 @@ interface Props {
defineProps<Props>()
const isDarkMode = inject('isDarkMode')
</script>
</script>