Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions documentation/partials/api/_props.pug
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,12 @@ h2.typo__h2#sub-props(data-section) Props
td.table__td: kbd 0
td.table__td
| Specify the tabindex of the Multiselect component
tr.table__tr
td.table__td: strong showFooter
td.table__td Boolean
td.table__td: kbd false
td.table__td
| Show a fixed footer below scrollable menu.

tr.table__tr
td.table__td.utils--center(colspan="4"): strong pointerMixin.js
Expand Down
14 changes: 13 additions & 1 deletion src/Multiselect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
</li>
<slot name="afterList"></slot>
</ul>
<div v-if="showFooter" class="multiselect__footer">
<slot name="footer" />
</div>
</div>
</transition>
</div>
Expand Down Expand Up @@ -297,6 +300,10 @@ export default {
tabindex: {
type: Number,
default: 0
},
showFooter: {
type: Boolean,
default: false
}
},
computed: {
Expand Down Expand Up @@ -551,6 +558,10 @@ fieldset[disabled] .multiselect {
text-overflow: ellipsis;
}

.multiselect__footer {
min-height: 40px;
}

.multiselect__tag-icon {
cursor: pointer;
margin-left: 7px;
Expand Down Expand Up @@ -644,7 +655,6 @@ fieldset[disabled] .multiselect {
display: block;
background: #fff;
width: 100%;
max-height: 240px;
overflow: auto;
border: 1px solid #e8e8e8;
border-top: none;
Expand All @@ -655,6 +665,8 @@ fieldset[disabled] .multiselect {
}

.multiselect__content {
max-height: 240px;
overflow: auto;
list-style: none;
display: inline-block;
padding: 0;
Expand Down