Skip to content

Commit 80ff9c5

Browse files
fix:【问题管理】添加关联问题时,问题过长下拉组件样式优化(#80) (#129)
1 parent 11f0a82 commit 80ff9c5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ui/src/styles/element-plus.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,3 +319,8 @@
319319
padding-left: 12px !important;
320320
padding-right: 12px !important;
321321
}
322+
323+
// select下拉框
324+
.select-popper {
325+
max-width: 300px;
326+
}

ui/src/views/paragraph/component/ProblemComponent.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@
2525
@change="addProblemHandle"
2626
@blur="isAddProblem = false"
2727
class="mb-16"
28+
popper-class="select-popper"
29+
:popper-append-to-body="false"
2830
>
2931
<el-option
3032
v-for="item in problemOptions"
3133
:key="item.id"
3234
:label="item.content"
3335
:value="item.id"
34-
/>
36+
>
37+
{{ item.content }}
38+
</el-option>
3539
</el-select>
3640
<template v-for="(item, index) in problemList" :key="index">
3741
<TagEllipsis

0 commit comments

Comments
 (0)