优化
This commit is contained in:
@@ -68,7 +68,7 @@ onMounted(load)
|
||||
<template v-else-if="detail">
|
||||
<section class="detail-section" aria-labelledby="inventory-basic-heading">
|
||||
<h2 id="inventory-basic-heading">整柜信息</h2>
|
||||
<dl class="detail-fields">
|
||||
<dl class="detail-fields density-fields">
|
||||
<div><dt>货物名称</dt><dd>{{ detail.inventory.cargoName }}</dd></div>
|
||||
<div><dt>集装箱号</dt><dd>{{ detail.inventory.containerNo }}</dd></div>
|
||||
<div><dt>国内仓</dt><dd>{{ detail.inventory.warehouseName }}</dd></div>
|
||||
@@ -97,19 +97,16 @@ onMounted(load)
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.inventory-detail-page { display: grid; min-width: 0; gap: 12px; }
|
||||
.detail-header { display: flex; align-items: center; gap: 12px; min-height: 40px; }
|
||||
.detail-header h1 { margin: 0; font-size: 16px; letter-spacing: 0; }
|
||||
.detail-section, .transactions { min-width: 0; border: 1px solid var(--cc-border); background: #fff; }
|
||||
.detail-section { padding: 12px; }
|
||||
.detail-section h2, .transactions h2 { margin: 0; font-size: 14px; letter-spacing: 0; }
|
||||
.detail-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 8px 0 0; border-top: 1px solid var(--cc-border); border-left: 1px solid var(--cc-border); }
|
||||
.detail-fields > div { min-width: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 36px; border-right: 1px solid var(--cc-border); border-bottom: 1px solid var(--cc-border); }
|
||||
.detail-fields dt { display: flex; align-items: center; padding: 6px 8px; background: #f8fafc; color: var(--cc-muted); font-size: 12px; }
|
||||
.detail-fields dd { align-self: center; margin: 6px 8px; font-size: 13px; overflow-wrap: anywhere; }
|
||||
.transactions { padding-top: 12px; overflow: hidden; }
|
||||
.transactions h2 { margin: 0 12px 8px; }
|
||||
.detail-loading { min-height: 180px; padding: 24px; border: 1px solid var(--cc-border); background: #fff; color: var(--cc-muted); }
|
||||
.inventory-detail-page { display: grid; min-width: 0; gap: var(--admin-space-5, 12px); }
|
||||
.detail-header { display: flex; align-items: center; gap: var(--admin-space-5, 12px); min-height: 40px; }
|
||||
.detail-header h1 { margin: 0; font-size: var(--admin-font-title, 16px); letter-spacing: 0; }
|
||||
.detail-section, .transactions { min-width: 0; border: 1px solid var(--cc-border); background: var(--admin-surface, #fff); }
|
||||
.detail-section { padding: var(--admin-space-5, 12px); }
|
||||
.detail-section h2, .transactions h2 { margin: 0; font-size: var(--admin-font-section, 14px); letter-spacing: 0; }
|
||||
.detail-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--admin-space-3, 8px) 0 0; }
|
||||
.transactions { padding-top: var(--admin-space-5, 12px); overflow: hidden; }
|
||||
.transactions h2 { margin: 0 var(--admin-space-5, 12px) var(--admin-space-3, 8px); }
|
||||
.detail-loading { min-height: 180px; padding: var(--admin-space-7, 24px); border: 1px solid var(--cc-border); background: var(--admin-surface, #fff); color: var(--cc-muted); }
|
||||
@media (max-width: 960px) { .detail-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||
@media (max-width: 520px) { .detail-header { flex-wrap: wrap; } .detail-header h1 { width: 100%; font-size: 18px; } .detail-fields { grid-template-columns: 1fr; } }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user