Skip to content

Commit 31a6a52

Browse files
committed
fix: 修复对话窗口,全局变量下拉框选项显示不全
1 parent c500920 commit 31a6a52

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

ui/src/components/dynamics-form/items/select/SingleSelect.vue

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<template>
2-
<el-select filterable :teleported="false" clearable v-bind="$attrs" v-model="_modelValue">
2+
<el-select
3+
filterable
4+
:teleported="true"
5+
popper-class="dynamics-single-select"
6+
clearable
7+
v-bind="$attrs"
8+
v-model="_modelValue"
9+
>
310
<el-option
411
v-for="(item, index) in option_list"
512
:key="index"
@@ -61,8 +68,10 @@ const label = (option: any) => {
6168
return option[textField.value]
6269
}
6370
</script>
64-
<style lang="scss" scoped>
65-
:deep(.el-select-dropdown) {
66-
max-width: 400px;
71+
<style lang="scss">
72+
.dynamics-single-select {
73+
.el-select-dropdown {
74+
max-width: 1px;
75+
}
6776
}
6877
</style>

0 commit comments

Comments
 (0)