Skip to content

Commit df7bbe2

Browse files
jikkaiLeopoldthecoder
authored andcommitted
Table: fix oversized filter list. Resolves #11314 (#11320)
1 parent 49473ff commit df7bbe2

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

packages/table/src/filter-panel.vue

+8-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
v-clickoutside="handleOutsideClick"
77
v-show="showPopper">
88
<div class="el-table-filter__content">
9-
<el-checkbox-group class="el-table-filter__checkbox-group" v-model="filteredValue">
10-
<el-checkbox
11-
v-for="filter in filters"
12-
:key="filter.value"
13-
:label="filter.value">{{ filter.text }}</el-checkbox>
14-
</el-checkbox-group>
9+
<el-scrollbar wrap-class="el-table-filter__wrap">
10+
<el-checkbox-group class="el-table-filter__checkbox-group" v-model="filteredValue">
11+
<el-checkbox
12+
v-for="filter in filters"
13+
:key="filter.value"
14+
:label="filter.value">{{ filter.text }}</el-checkbox>
15+
</el-checkbox-group>
16+
</el-scrollbar>
1517
</div>
1618
<div class="el-table-filter__bottom">
1719
<button @click="handleConfirm"

packages/theme-chalk/src/table-column.scss

+5
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,16 @@
7676
}
7777
}
7878

79+
@include e(wrap) {
80+
max-height: 280px;
81+
}
82+
7983
@include e(checkbox-group) {
8084
padding: 10px;
8185

8286
label.el-checkbox {
8387
display: block;
88+
margin-right: 5px;
8489
margin-bottom: 8px;
8590
margin-left: 5px;
8691
}

0 commit comments

Comments
 (0)