2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-13 08:32:26 +03:00

Upgraded versions to support template compilation rendering

This commit is contained in:
Rajesh Akkineni
2016-10-19 19:50:15 +05:30
parent 2ea337e1dc
commit d1f3a57fff
3 changed files with 8 additions and 6 deletions
+3 -1
View File
@@ -214,6 +214,8 @@
</li>
<transition name="fade">
<li v-if="!filteredOptions.length" class="divider"></li>
</transition>
<transition name="fade">
<li v-if="!filteredOptions.length" class="text-center">
<slot name="no-options">Sorry, no matching options.</slot>
</li>
@@ -605,7 +607,7 @@
* @return {array}
*/
filteredOptions() {
let options = this.$options.filters.filterBy(this.options, this.search)
let options = this.$options.filters.filterBy?this.$options.filters.filterBy(this.options, this.search):this.options
if (this.taggable && this.search.length && !this.optionExists(this.search)) {
options.unshift(this.search)
}
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = {
*/
onSearch: {
type: Function,
default: false
default: function(search, loading){}
},
/**