2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-10 07:52:23 +03:00

use scope variables

This commit is contained in:
Jeff
2019-11-11 19:42:20 -08:00
parent db544d55f7
commit 33a8f55407
+4 -5
View File
@@ -14,7 +14,6 @@
/>
</span>
</slot>
<slot name="search" v-bind="scope.search">
<input v-bind="scope.search.attributes" v-on="scope.search.events">
</slot>
@@ -28,15 +27,13 @@
v-on="scope.clear.events"
/>
</slot>
<slot name="open-indicator" v-bind="scope.openIndicator">
<component
v-if="!noDrop"
:is="childComponents.OpenIndicator"
v-if="scope.openIndicator.shouldDisplay"
:is="scope.openIndicator.component"
v-bind="scope.openIndicator.attributes"
/>
</slot>
<slot name="spinner" v-bind="scope.spinner">
<div :class="scope.spinner.bindings.class" v-show="mutableLoading">Loading...</div>
</slot>
@@ -1092,6 +1089,8 @@
},
},
openIndicator: {
shouldDisplay: ! this.noDrop,
component: this.childComponents.openIndicator,
attributes: {
'ref': 'openIndicator',
'role': 'presentation',