docs(select): remove unused var. fix #40

This commit is contained in:
07akioni 2021-06-09 16:44:05 +08:00
parent 50dba5d131
commit 6ec28ce22b
4 changed files with 0 additions and 12 deletions

View File

@ -74,17 +74,14 @@ export default {
selectedValues: null,
loading: false,
options: [],
noDataContent: 'please search',
handleSearch: (query) => {
if (!query.length) {
this.options = []
this.noDataContent = 'please search'
return
}
this.loading = true
window.setTimeout(() => {
this.options = options.filter((item) => ~item.label.indexOf(query))
if (!this.options.length) this.noDataContent = 'no result found'
this.loading = false
}, 1000)
}

View File

@ -73,17 +73,14 @@ export default {
value: null,
loading: false,
options: [],
noDataContent: 'please search',
handleSearch: (query) => {
if (!query.length) {
this.options = []
this.noDataContent = 'please search'
return
}
this.loading = true
window.setTimeout(() => {
this.options = options.filter((item) => ~item.label.indexOf(query))
if (!this.options.length) this.noDataContent = 'no result found'
this.loading = false
}, 1000)
}

View File

@ -74,17 +74,14 @@ export default {
selectedValues: null,
loading: false,
options: [],
noDataContent: 'please search',
handleSearch: (query) => {
if (!query.length) {
this.options = []
this.noDataContent = 'please search'
return
}
this.loading = true
window.setTimeout(() => {
this.options = options.filter((item) => ~item.label.indexOf(query))
if (!this.options.length) this.noDataContent = 'no result found'
this.loading = false
}, 1000)
}

View File

@ -73,17 +73,14 @@ export default {
value: null,
loading: false,
options: [],
noDataContent: 'please search',
handleSearch: (query) => {
if (!query.length) {
this.options = []
this.noDataContent = 'please search'
return
}
this.loading = true
window.setTimeout(() => {
this.options = options.filter((item) => ~item.label.indexOf(query))
if (!this.options.length) this.noDataContent = 'no result found'
this.loading = false
}, 1000)
}