From b4569fc88d00e37e8670e67e1107500ac420ee9a Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 15 Jul 2025 18:40:53 +0800 Subject: [PATCH] fix: tree style --- .../dynamics-form/constructor/index.vue | 49 ++++++++++++++----- .../constructor/items/SliderConstructor.vue | 33 +++++++------ .../items/SwitchInputConstructor.vue | 12 +++-- .../components/folder-tree/MoveToDialog.vue | 3 +- ui/src/styles/element-plus.scss | 3 ++ .../xpack-component/XPackLimitDrawer.vue | 40 +++++++++------ .../component/DropdownMenu.vue | 38 +++++++------- .../component/AddKnowledgeDialog.vue | 25 +++++----- .../component/McpServersDialog.vue | 6 +-- .../component/ParamSettingDialog.vue | 7 +-- ui/src/views/application/index.vue | 19 +++---- ui/src/views/knowledge/index.vue | 21 ++++---- ui/src/views/tool/index.vue | 21 ++++---- 13 files changed, 168 insertions(+), 109 deletions(-) diff --git a/ui/src/components/dynamics-form/constructor/index.vue b/ui/src/components/dynamics-form/constructor/index.vue index 09127ee6d..aabcf0109 100644 --- a/ui/src/components/dynamics-form/constructor/index.vue +++ b/ui/src/components/dynamics-form/constructor/index.vue @@ -7,7 +7,12 @@ :model="form_data" v-bind="$attrs" > - + - + - + - - + + (), { input_type_list: () => - input_type_list_data.map((item) => ({ label: item.label, value: item.value + 'Constructor' })) - } + input_type_list_data.map((item) => ({ + label: item.label, + value: item.value + 'Constructor', + })), + }, ) const emit = defineEmits(['update:modelValue']) @@ -78,13 +105,13 @@ const form_data = ref({ field: '', tooltip: '', required: false, - input_type: '' + input_type: '', }) const rules = { label: [{ required: true, message: t('dynamicsForm.paramForm.name.requiredMessage') }], field: [{ required: true, message: t('dynamicsForm.paramForm.field.requiredMessage') }], required: [{ required: true, message: t('dynamicsForm.paramForm.required.requiredMessage') }], - input_type: [{ required: true, message: t('dynamicsForm.paramForm.input_type.requiredMessage') }] + input_type: [{ required: true, message: t('dynamicsForm.paramForm.input_type.requiredMessage') }], } const getData = () => { let label: string | any = form_data.value.label @@ -93,7 +120,7 @@ const getData = () => { input_type: 'TooltipLabel', label: form_data.value.label, attrs: { tooltip: form_data.value.tooltip }, - props_info: {} + props_info: {}, } } return { @@ -102,7 +129,7 @@ const getData = () => { field: form_data.value.field, default_value: form_data.value.default_value, show_default_value: form_data.value.show_default_value, - ...componentFormRef.value.getData() + ...componentFormRef.value.getData(), } } diff --git a/ui/src/components/dynamics-form/constructor/items/SliderConstructor.vue b/ui/src/components/dynamics-form/constructor/items/SliderConstructor.vue index 942e11445..a4256c468 100644 --- a/ui/src/components/dynamics-form/constructor/items/SliderConstructor.vue +++ b/ui/src/components/dynamics-form/constructor/items/SliderConstructor.vue @@ -1,5 +1,10 @@