feat: 库存弹窗展示车牌号及省市信息
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
kkfluous
2026-03-27 15:39:10 +08:00
parent e4ffd027be
commit 9a7382101b
4 changed files with 16 additions and 3 deletions

View File

@@ -733,13 +733,18 @@ export default function App() {
))}
</div>
) : modalVehicles.length > 0 ? (
<div className="grid grid-cols-2 sm:grid-cols-3 gap-2">
<div className="space-y-1.5">
{modalVehicles.map((v) => (
<div
key={v.id}
className="bg-gray-50 p-2 rounded border border-gray-100 text-center font-mono text-[11px] sm:text-xs font-bold text-gray-700"
className="flex items-center justify-between bg-gray-50 px-3 py-2 rounded border border-gray-100"
>
{v.plateNumber}
<span className="font-mono text-[11px] sm:text-xs font-bold text-gray-700">{v.plateNumber}</span>
{(v.province || v.city) && (
<span className="text-[10px] text-gray-400 ml-2 shrink-0">
{[v.province, v.city].filter(Boolean).join(' ')}
</span>
)}
</div>
))}
</div>