From 565f04d49d2add2bcd827684c45ccd138a84e411 Mon Sep 17 00:00:00 2001 From: raojinlin Date: Fri, 23 Feb 2024 10:33:23 +0800 Subject: [PATCH] Fix props name format, use kebab-case --- frontend/src/components/content_value/ContentEntryEditor.vue | 2 +- frontend/src/components/content_value/ContentValueJson.vue | 2 +- frontend/src/components/content_value/ContentValueString.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/content_value/ContentEntryEditor.vue b/frontend/src/components/content_value/ContentEntryEditor.vue index 764f640..ce56563 100644 --- a/frontend/src/components/content_value/ContentEntryEditor.vue +++ b/frontend/src/components/content_value/ContentEntryEditor.vue @@ -175,7 +175,7 @@ const onSave = () => { :border="true" :content="displayValue" :language="viewLanguage" - :keyPath="viewAs.field" + :key-path="viewAs.field" class="flex-item-expand" @input="onInput" @reset="onInput" diff --git a/frontend/src/components/content_value/ContentValueJson.vue b/frontend/src/components/content_value/ContentValueJson.vue index baec7fe..4f07954 100644 --- a/frontend/src/components/content_value/ContentValueJson.vue +++ b/frontend/src/components/content_value/ContentValueJson.vue @@ -149,7 +149,7 @@ defineExpose({ v-show="!props.loading" :content="displayValue" :loading="props.loading" - :keyPath="props.keyPath" + :key-path="props.keyPath" class="flex-item-expand" language="json" style="height: 100%" diff --git a/frontend/src/components/content_value/ContentValueString.vue b/frontend/src/components/content_value/ContentValueString.vue index 010ae85..2742d75 100644 --- a/frontend/src/components/content_value/ContentValueString.vue +++ b/frontend/src/components/content_value/ContentValueString.vue @@ -204,7 +204,7 @@ defineExpose({ :content="displayValue" :language="viewLanguage" :loading="props.loading" - :keyPath="props.keyPath" + :key-path="props.keyPath" class="flex-item-expand" style="height: 100%" @input="onInput"