Skip to content

Commit de234ee

Browse files
committed
fix: Collapse tags for multi tree-select in inline params
1 parent cb2b56d commit de234ee

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

ui/src/components/ai-chat/component/inline-params/InlineFormItem.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div
1313
v-if="formfield.input_type === 'SwitchInput'"
1414
class="flex align-center border border-r-6"
15-
style="padding: 4px 10px;"
15+
style="padding: 4px 10px"
1616
>
1717
<span :title="switchLabel" class="mr-4 lighter ellipsis" style="max-width: 75px;">
1818
{{ switchLabel }}
@@ -88,7 +88,11 @@ const itemValue = computed({
8888
8989
const attrs = computed(() => {
9090
const base = props.formfield.attrs || {}
91-
if (props.formfield.input_type === 'MultiSelect' || props.formfield.input_type === 'Knowledge') {
91+
if (
92+
props.formfield.input_type === 'MultiSelect' ||
93+
props.formfield.input_type === 'Knowledge' ||
94+
(props.formfield.input_type === 'TreeSelect' && base.multiple)
95+
) {
9296
return {
9397
...base,
9498
'collapse-tags': true,

0 commit comments

Comments
 (0)