Pārlūkot izejas kodu

fix: 首页 home.vue 组件文本 一级 未开始改为红色字体

sequoia tungfang 3 dienas atpakaļ
vecāks
revīzija
8a5f3daac5
2 mainītis faili ar 8 papildinājumiem un 4 dzēšanām
  1. 6 2
      src/components/ui/TechTable.vue
  2. 2 2
      src/views/Home.vue

+ 6 - 2
src/components/ui/TechTable.vue

@@ -18,8 +18,12 @@
 
                 <tr v-for="(row, rowIndex) in data" :key="rowIndex" class="table-row"
                     @click="handleRowClick(row, rowIndex)">
-                    <td v-for="(col, colIndex) in columns" :key="colIndex"
-                        :style="{ textAlign: col.align || 'center' }">
+                    <td
+                        v-for="(col, colIndex) in columns"
+                        :key="colIndex"
+                        :style="{ textAlign: col.align || 'center' }"
+                        :title="row[col.key]"
+                    >
                         <slot :name="col.key" :row="row" :index="rowIndex">
                             {{ row[col.key] }}
                         </slot>

+ 2 - 2
src/views/Home.vue

@@ -87,13 +87,13 @@
             <TechTable :columns="tableColumns" :data="tableData" height="263px">
       
               <template #level="{ row }">
-                <span :style="{ color: row.level === '二级' ? '#FFDF0C' : 'inherit' }">
+                <span :title="row.level" :style="{ color: row.level === '二级' ? '#FFDF0C' : '#F00' }">
                   {{ row.level }}
                 </span>
               </template>
 
               <template #status="{ row }">
-                <span :style="{ color: row.status === '进行中' ? '#FFDF0C' : 'inherit' }">
+                <span :title="row.status" :style="{ color: row.status === '进行中' ? '#FFDF0C' : '#F00' }">
                   {{ row.status }}
                 </span>
               </template>