Jelajahi Sumber

feat: 修改Tracking详情页container表格展开行样式bug

Jack Zhou 3 bulan lalu
induk
melakukan
69a77f30a8

+ 4 - 10
src/views/Tracking/src/components/TrackingDetail/src/components/ContainersView.vue

@@ -58,10 +58,7 @@ const handleColumns = (columns: any) => {
     }
     return curColumn
   })
-  return [
-    { type: 'expand', width: 40, slots: { default: 'expand', content: 'expand_content' } },
-    ...newColumns
-  ]
+  return [{ type: 'expand', width: 40, slots: { content: 'expand_content' } }, ...newColumns]
 }
 watch(
   () => props.data,
@@ -172,9 +169,6 @@ useRowClickStyle(tableRef)
 }
 </style>
 <style lang="scss">
-.vxe-body--row-expanded-cell {
-  // height: 100%;
-}
 .container-table-status {
   max-height: 300px;
   padding: 40px 20px;
@@ -228,7 +222,7 @@ useRowClickStyle(tableRef)
         display: flex;
         flex-direction: column;
         justify-content: space-between;
-        max-width: 320px;
+        max-width: 360px;
         padding: 10px 10px;
         .title {
           font-size: 14px;
@@ -240,11 +234,11 @@ useRowClickStyle(tableRef)
         }
       }
       .center-code {
-        width: 320px;
+        min-width: 320px;
         line-height: 57px;
       }
       .right-city {
-        width: 320px;
+        min-width: 320px;
         line-height: 57px;
       }
       .value-color {