fix:修复筛选的问题
This commit is contained in:
parent
fbb4f8e005
commit
3cd8b22b89
@ -71,7 +71,11 @@ export default {
|
|||||||
this.list = [];
|
this.list = [];
|
||||||
this.selectIndex = null;
|
this.selectIndex = null;
|
||||||
},
|
},
|
||||||
searchClick() {
|
searchClick(value, e) {
|
||||||
|
//如果是enter按键触发的不作处理
|
||||||
|
if (e && e.key) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.timer != null) {
|
if (this.timer != null) {
|
||||||
clearTimeout(this.timer);
|
clearTimeout(this.timer);
|
||||||
}
|
}
|
||||||
@ -90,7 +94,7 @@ export default {
|
|||||||
if (e) {
|
if (e) {
|
||||||
this.stopDefault(e);
|
this.stopDefault(e);
|
||||||
}
|
}
|
||||||
if (!index) {
|
if (index === undefined || index === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let bookmark = this.list[index];
|
let bookmark = this.list[index];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user