mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
Upgraded versions to support template compilation rendering
This commit is contained in:
+4
-4
@@ -59,11 +59,11 @@
|
|||||||
"sass-loader": "^3.2.0",
|
"sass-loader": "^3.2.0",
|
||||||
"shelljs": "^0.7.0",
|
"shelljs": "^0.7.0",
|
||||||
"url-loader": "^0.5.7",
|
"url-loader": "^0.5.7",
|
||||||
"vue": "^1.0.24",
|
"vue": "^2.0.3",
|
||||||
"vue-hot-reload-api": "^1.2.0",
|
"vue-hot-reload-api": "^1.2.0",
|
||||||
"vue-html-loader": "^1.0.0",
|
"vue-html-loader": "^1.2.3",
|
||||||
"vue-loader": "^8.3.0",
|
"vue-loader": "^9.6.0",
|
||||||
"vue-resource": "^0.8.0",
|
"vue-resource": "^1.0.3",
|
||||||
"vue-style-loader": "^1.0.0",
|
"vue-style-loader": "^1.0.0",
|
||||||
"vuex": "^0.6.3",
|
"vuex": "^0.6.3",
|
||||||
"webpack": "^1.12.2",
|
"webpack": "^1.12.2",
|
||||||
|
|||||||
@@ -214,6 +214,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<transition name="fade">
|
<transition name="fade">
|
||||||
<li v-if="!filteredOptions.length" class="divider"></li>
|
<li v-if="!filteredOptions.length" class="divider"></li>
|
||||||
|
</transition>
|
||||||
|
<transition name="fade">
|
||||||
<li v-if="!filteredOptions.length" class="text-center">
|
<li v-if="!filteredOptions.length" class="text-center">
|
||||||
<slot name="no-options">Sorry, no matching options.</slot>
|
<slot name="no-options">Sorry, no matching options.</slot>
|
||||||
</li>
|
</li>
|
||||||
@@ -605,7 +607,7 @@
|
|||||||
* @return {array}
|
* @return {array}
|
||||||
*/
|
*/
|
||||||
filteredOptions() {
|
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)) {
|
if (this.taggable && this.search.length && !this.optionExists(this.search)) {
|
||||||
options.unshift(this.search)
|
options.unshift(this.search)
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ module.exports = {
|
|||||||
*/
|
*/
|
||||||
onSearch: {
|
onSearch: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default: false
|
default: function(search, loading){}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user