|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
- <div class="container mx-auto px-4 py-8">
|
|
|
+ <div class="line-page">
|
|
|
+ <div class="container mx-auto px-4 py-8">
|
|
|
<div class="bg-white rounded-xl shadow-lg overflow-hidden">
|
|
|
|
|
|
|
|
@@ -31,7 +32,7 @@
|
|
|
<!-- 数据表格 -->
|
|
|
<div v-else-if="filteredData.length > 0" class="overflow-x-auto">
|
|
|
<table class="min-w-full divide-y divide-gray-200">
|
|
|
- <thead class="bg-gray-50">
|
|
|
+ <thead class="bg-white">
|
|
|
<tr>
|
|
|
<th
|
|
|
v-for="(col, index) in displayColumns"
|
|
@@ -79,7 +80,7 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 数据统计 -->
|
|
|
- <div class="p-4 bg-gray-50 border-t border-gray-200">
|
|
|
+ <div class="p-4 bg-white border-t border-gray-200">
|
|
|
<div class="flex flex-col md:flex-row justify-between items-center">
|
|
|
<div class="text-sm text-gray-500 mb-2 md:mb-0">
|
|
|
共 <span class="font-medium text-gray-900">{{ filteredData.length }}</span> 条数据
|
|
@@ -88,6 +89,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
@@ -167,6 +170,15 @@ onMounted(() => {
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
+.line-page {
|
|
|
+ width: 100%;
|
|
|
+ margin: 0 auto 24px;
|
|
|
+ background-color: white;
|
|
|
+ border-radius: 12px;
|
|
|
+ padding: 20px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
|
+}
|
|
|
/* 布局 */
|
|
|
.container {
|
|
|
max-width: 1280px;
|
|
@@ -202,12 +214,14 @@ onMounted(() => {
|
|
|
table {
|
|
|
width: 100%;
|
|
|
border-collapse: collapse; /* 合并边框线 */
|
|
|
+ background-color: white;
|
|
|
}
|
|
|
th, td {
|
|
|
border: 1px solid #d1d5db; /* 灰色边框 */
|
|
|
text-align: center; /* 内容居中 */
|
|
|
padding: 12px 8px; /* 内边距优化 */
|
|
|
font-size: 14px;
|
|
|
+ background-color: white;
|
|
|
}
|
|
|
.px-6 { padding: 0 1.5rem; }
|
|
|
.py-4 { padding: 1rem 0; }
|