报工优化
This commit is contained in:
@@ -26,16 +26,20 @@ export default {
|
||||
},
|
||||
emitValue() {
|
||||
const _value = this.scanValue;
|
||||
setTimeout(() => {
|
||||
this.scanValue = '';
|
||||
}, 100);
|
||||
this.$nextTick(() => {
|
||||
this.$emit('scanConfirm', _value);
|
||||
this.getFocus();
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.scanValue = '';
|
||||
this.getFocus();
|
||||
}, 300);
|
||||
|
||||
},
|
||||
inputConfirm() {
|
||||
this.emitValue();
|
||||
setTimeout(()=>{
|
||||
this.emitValue();
|
||||
},300)
|
||||
|
||||
},
|
||||
// 重置焦点
|
||||
getFocus() {
|
||||
@@ -43,7 +47,7 @@ export default {
|
||||
this.focus = false;
|
||||
setTimeout(() => {
|
||||
this.focus = true;
|
||||
}, 200);
|
||||
}, 300);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user