diff --git a/ui/src/components/ai-chat/component/inline-params/index.vue b/ui/src/components/ai-chat/component/inline-params/index.vue index eda6bd5dab6..6e8b4381906 100644 --- a/ui/src/components/ai-chat/component/inline-params/index.vue +++ b/ui/src/components/ai-chat/component/inline-params/index.vue @@ -15,7 +15,12 @@ :formfield-list="fieldList" /> - + @@ -38,6 +43,8 @@ const props = defineProps<{ const emit = defineEmits(['update:formData', 'openDialog']) +const triggerBtnRef = ref() + const fieldList = ref([]) const formValue = ref>({}) const setting = ref<{ exposed_fields: string[]; menu_title: string }>({ @@ -196,6 +203,7 @@ const show = (field: FormField) => { } defineExpose({ + triggerBtnRef, validate: () => { for (const field of fieldList.value) { if (!show(field)) { diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index e7ab516c368..8d31f182892 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -7,10 +7,26 @@ height: firsUserInput ? '100%' : undefined, }" > -
+
+ +
+
+ + +