Skip to content

Commit 621421c

Browse files
perf: 样式优化 (#149)
1 parent df85089 commit 621421c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ui/src/components/auto-tooltip/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
:disabled="!(containerWeight > contentWeight)"
55
effect="dark"
66
placement="bottom"
7+
popper-class="auto-tooltip-popper"
78
>
89
<div ref="tagLabel" :class="['auto-tooltip', className]" :style="style">
910
<slot></slot>

ui/src/styles/element-plus.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,11 @@
323323
// select下拉框
324324
.select-popper {
325325
max-width: 300px;
326+
.el-select-dropdown__wrap {
327+
max-width: 300px;
328+
}
329+
}
330+
331+
.auto-tooltip-popper {
332+
max-width: 500px;
326333
}

0 commit comments

Comments
 (0)