From 75045862e8135b63cb20a61bbf213d2e143bdd69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=87=E7=9D=BF=20=E5=BC=A0?= Date: Wed, 14 Oct 2026 17:29:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E5=A4=87=E6=B3=A8=E7=8B=AC=E5=8D=A0=E4=B8=80=E8=A1=8C=E5=B9=B6?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=8A=98=E8=A1=8C=EF=BC=8C=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E5=8A=A0=E5=AE=BD=EF=BC=8C=E8=A7=84=E6=A0=BC=E6=A0=87=E9=80=89?= =?UTF-8?q?=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/Materials.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/Materials.vue b/frontend/src/views/Materials.vue index 123edcd4..fd60be63 100644 --- a/frontend/src/views/Materials.vue +++ b/frontend/src/views/Materials.vue @@ -90,7 +90,7 @@ - + - + @@ -160,7 +160,7 @@ - + {{ detailRow.material_code }} {{ detailRow.id }} {{ detailRow.name }} @@ -173,7 +173,7 @@ {{ detailRow.manufacturer_name || '-' }} {{ formatDate(detailRow.created_at, MATERIAL_DATE_OPTIONS) }} {{ formatDate(detailRow.updated_at, MATERIAL_DATE_OPTIONS) }} - {{ detailRow.remark || '-' }} + {{ detailRow.remark || '-' }} hasUnsavedChanges.value) flex: 1; min-width: 0; } +/* 备注可能是没有空格的长 URL(找不到断行点会撑破单元格),也可能是多行文本。 + pre-wrap 保留原本的换行与空格,break-all 让长 URL 能在任意字符处折行。 */ +:deep(.material-remark) { + white-space: pre-wrap; + word-break: break-all; +}