From 58165308a1cebdd21f02df7e291fa31a6bcf26c9 Mon Sep 17 00:00:00 2001 From: Tian Tan Date: Wed, 27 Nov 2024 11:42:03 +0800 Subject: [PATCH] chore(plugin-form): css correction and code refactoring --- .../forms/src/components/fields/FieldAutoSuggest.vue | 2 +- .../src/components/fields/FieldSelectionGroup.vue | 12 +++--------- .../entities-plugins/src/components/PluginForm.vue | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/packages/core/forms/src/components/fields/FieldAutoSuggest.vue b/packages/core/forms/src/components/fields/FieldAutoSuggest.vue index 76162809e3..6a171792d0 100644 --- a/packages/core/forms/src/components/fields/FieldAutoSuggest.vue +++ b/packages/core/forms/src/components/fields/FieldAutoSuggest.vue @@ -115,7 +115,7 @@ export default { return this.schema.entity }, scope() { - return this.entity.replace('_',' ').replace(/s$/,'') + return this.schema.label.toLowerCase() }, bypassSearch() { return this.$route && this.$route.query && this.$route.query.no_search diff --git a/packages/core/forms/src/components/fields/FieldSelectionGroup.vue b/packages/core/forms/src/components/fields/FieldSelectionGroup.vue index 11e36d1990..5008246d79 100644 --- a/packages/core/forms/src/components/fields/FieldSelectionGroup.vue +++ b/packages/core/forms/src/components/fields/FieldSelectionGroup.vue @@ -14,7 +14,7 @@ v-for="(option, i) in schema.fields" :key="i" class="option-group" - :class="{ 'radio-diabled': $props.disabled }" + :class="{ 'radio-disabled': $props.disabled }" >