Skip to content

Commit ad9c837

Browse files
authored
fix: The dropdown menu of workflow basic components cannot be scrolled (#1946)
1 parent cb6e4b7 commit ad9c837

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

ui/src/workflow/nodes/base-node/index.vue

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
@submitDialog="submitDialog"
4646
/>
4747
</el-form-item>
48-
<el-form-item >
48+
<el-form-item>
4949
<template #label>
5050
<div class="flex-between">
5151
<div class="flex align-center">
@@ -70,7 +70,11 @@
7070
<Setting />
7171
</el-icon>
7272
</el-button>
73-
<el-switch size="small" v-model="form_data.file_upload_enable" @change="switchFileUpload"/>
73+
<el-switch
74+
size="small"
75+
v-model="form_data.file_upload_enable"
76+
@change="switchFileUpload"
77+
/>
7478
</div>
7579
</div>
7680
</template>
@@ -90,14 +94,19 @@
9094
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
9195
</el-tooltip> -->
9296
</div>
93-
<el-switch size="small" v-model="form_data.stt_model_enable" @change="sttModelEnableChange"/>
97+
<el-switch
98+
size="small"
99+
v-model="form_data.stt_model_enable"
100+
@change="sttModelEnableChange"
101+
/>
94102
</div>
95103
</template>
96104

97105
<el-select
98106
v-show="form_data.stt_model_enable"
99107
v-model="form_data.stt_model_id"
100108
class="w-full"
109+
@wheel="wheel"
101110
popper-class="select-model"
102111
placeholder="请选择语音识别模型"
103112
>
@@ -170,7 +179,11 @@
170179
<Setting />
171180
</el-icon>
172181
</el-button>
173-
<el-switch size="small" v-model="form_data.tts_model_enable" @change="ttsModelEnableChange"/>
182+
<el-switch
183+
size="small"
184+
v-model="form_data.tts_model_enable"
185+
@change="ttsModelEnableChange"
186+
/>
174187
</div>
175188
</div>
176189
</template>
@@ -182,6 +195,7 @@
182195
v-if="form_data.tts_type === 'TTS' && form_data.tts_model_enable"
183196
v-model="form_data.tts_model_id"
184197
class="w-full"
198+
@wheel="wheel"
185199
popper-class="select-model"
186200
@change="ttsModelChange()"
187201
placeholder="请选择语音合成模型"
@@ -241,7 +255,11 @@
241255
</el-form-item>
242256
</el-form>
243257
<TTSModeParamSettingDialog ref="TTSModeParamSettingDialogRef" @refresh="refreshTTSForm" />
244-
<FileUploadSettingDialog ref="FileUploadSettingDialogRef" :node-model="nodeModel" @refresh="refreshFileUploadForm"/>
258+
<FileUploadSettingDialog
259+
ref="FileUploadSettingDialogRef"
260+
:node-model="nodeModel"
261+
@refresh="refreshFileUploadForm"
262+
/>
245263
</NodeContainer>
246264
</template>
247265
<script setup lang="ts">
@@ -368,7 +386,6 @@ function sttModelEnableChange() {
368386
}
369387
}
370388
371-
372389
const openTTSParamSettingDialog = () => {
373390
const model_id = form_data.value.tts_model_id
374391
if (!model_id) {
@@ -382,7 +399,6 @@ const refreshTTSForm = (data: any) => {
382399
form_data.value.tts_model_params_setting = data
383400
}
384401
385-
386402
const switchFileUpload = () => {
387403
const default_upload_setting = {
388404
maxFiles: 3,
@@ -394,7 +410,8 @@ const switchFileUpload = () => {
394410
}
395411
396412
if (form_data.value.file_upload_enable) {
397-
form_data.value.file_upload_setting = form_data.value.file_upload_setting || default_upload_setting
413+
form_data.value.file_upload_setting =
414+
form_data.value.file_upload_setting || default_upload_setting
398415
}
399416
props.nodeModel.graphModel.eventCenter.emit('refreshFileUploadConfig')
400417
}

0 commit comments

Comments
 (0)