mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-30 12:52:43 +08:00
docs(select): remove unused var. fix #40
This commit is contained in:
parent
50dba5d131
commit
6ec28ce22b
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user