From c34fe874441251497a2eea54b1c7f6c2a6096a91 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Tue, 1 Nov 2022 08:12:10 +0800 Subject: [PATCH] cap title, display origin text in content --- src/views/components/ObjectFieldComponent.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/components/ObjectFieldComponent.vue b/src/views/components/ObjectFieldComponent.vue index c6972245..83591fd3 100644 --- a/src/views/components/ObjectFieldComponent.vue +++ b/src/views/components/ObjectFieldComponent.vue @@ -42,8 +42,8 @@ v-for="key in Object.keys(value)" :key="key" :title="formatTitle(key)" - class="p-0 text-capitalize" - title-item-class="bg-light-primary" + class="p-0" + title-item-class="bg-light-primary text-capitalize" > v.replaceAll('_', ' '), + formatTitle: v => String(v).replaceAll('_', ' '), isObjectText(v) { return String(v).startsWith('{') && String(v).endsWith('}') },