Commit 55d3beef authored by 杨南鸿's avatar 杨南鸿

代码格式问题

parent 86cc6aec
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
focused: false, focused: false,
isComposing: false, isComposing: false,
passwordVisible: false, passwordVisible: false,
task:null task: null
}; };
}, },
...@@ -365,17 +365,15 @@ ...@@ -365,17 +365,15 @@
handleInput(event, refresh) { handleInput(event, refresh) {
// should not emit input during composition // should not emit input during composition
// see: https://github.com/ElemeFE/element/issues/10516 // see: https://github.com/ElemeFE/element/issues/10516
//console.log(123, event.target.value); if (this.isComposing || (this.lazy && !refresh)) {
//console.log(this.isComposing, this.lazy, !refresh); this.isInput = true;
if (this.isComposing || (this.lazy && !refresh)){ let _this = this;
this.isInput = true clearTimeout(_this.task);
let _this = this
clearTimeout(_this.task)
_this.task = setTimeout(() => { _this.task = setTimeout(() => {
this.handleInput(event, true); this.handleInput(event, true);
}, 1500); }, 1500);
return; return;
} }
// hack for https://github.com/ElemeFE/element/issues/8548 // hack for https://github.com/ElemeFE/element/issues/8548
// should remove the following line when we don't support IE // should remove the following line when we don't support IE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment