2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-22 10:30:34 +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> </span>
</slot> </slot>
<slot name="search" v-bind="scope.search"> <slot name="search" v-bind="scope.search">
<input v-bind="scope.search.attributes" v-on="scope.search.events"> <input v-bind="scope.search.attributes" v-on="scope.search.events">
</slot> </slot>
@@ -28,15 +27,13 @@
v-on="scope.clear.events" v-on="scope.clear.events"
/> />
</slot> </slot>
<slot name="open-indicator" v-bind="scope.openIndicator"> <slot name="open-indicator" v-bind="scope.openIndicator">
<component <component
v-if="!noDrop" v-if="scope.openIndicator.shouldDisplay"
:is="childComponents.OpenIndicator" :is="scope.openIndicator.component"
v-bind="scope.openIndicator.attributes" v-bind="scope.openIndicator.attributes"
/> />
</slot> </slot>
<slot name="spinner" v-bind="scope.spinner"> <slot name="spinner" v-bind="scope.spinner">
<div :class="scope.spinner.bindings.class" v-show="mutableLoading">Loading...</div> <div :class="scope.spinner.bindings.class" v-show="mutableLoading">Loading...</div>
</slot> </slot>
@@ -1092,6 +1089,8 @@
}, },
}, },
openIndicator: { openIndicator: {
shouldDisplay: ! this.noDrop,
component: this.childComponents.openIndicator,
attributes: { attributes: {
'ref': 'openIndicator', 'ref': 'openIndicator',
'role': 'presentation', 'role': 'presentation',