From 1fe27e25ca8cdf14f8663e57dbe0fcad045fec63 Mon Sep 17 00:00:00 2001 From: jingrow Date: Sat, 1 Nov 2025 19:30:48 +0800 Subject: [PATCH] =?UTF-8?q?Icon=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E6=98=BE=E7=A4=BA=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/components/form/controls/Icon.vue | 71 +++++++++++++++++-- .../src/core/pagetype/GenericListPage.vue | 18 +++++ 2 files changed, 84 insertions(+), 5 deletions(-) diff --git a/apps/jingrow/frontend/src/core/components/form/controls/Icon.vue b/apps/jingrow/frontend/src/core/components/form/controls/Icon.vue index 5fe2093..660921f 100644 --- a/apps/jingrow/frontend/src/core/components/form/controls/Icon.vue +++ b/apps/jingrow/frontend/src/core/components/form/controls/Icon.vue @@ -1,11 +1,17 @@ @@ -26,6 +48,45 @@ const labelLayout = computed(() => props.df.label_layout || 'vertical') .field-wrapper :deep(.n-input) { flex: 1; } + +.icon-field-content { + display: flex; + align-items: center; + gap: 12px; + flex: 1; +} + +.icon-display { + display: flex; + align-items: center; + justify-content: center; + min-width: 32px; + width: 32px; + height: 32px; + flex-shrink: 0; +} + +.icon-gray { + color: #9ca3af; +} + +.icon-placeholder { + color: #9ca3af; + font-size: 14px; +} + +.icon-value-display { + flex: 1; + min-width: 0; +} + +.field-value-text { + color: #111827; + font-size: 14px; + min-height: 32px; + display: flex; + align-items: center; +} diff --git a/apps/jingrow/frontend/src/core/pagetype/GenericListPage.vue b/apps/jingrow/frontend/src/core/pagetype/GenericListPage.vue index 44055b2..5a7c0ce 100644 --- a/apps/jingrow/frontend/src/core/pagetype/GenericListPage.vue +++ b/apps/jingrow/frontend/src/core/pagetype/GenericListPage.vue @@ -154,6 +154,9 @@ + @@ -241,6 +244,9 @@ +