弹窗样式

This commit is contained in:
2023-11-21 18:33:00 +08:00
parent 8681e068bf
commit d98e51e99b
6 changed files with 68 additions and 23 deletions

View File

@@ -102,6 +102,17 @@ export default {
}, 0)
},
onKeyPress (button) {
if (button === '{lock}' || button === '{shift}' || button === '{change}' || button === '{bksp}' || button === '{clear}') {
this.$nextTick(() => {
this.inputEle.focus()
})
setTimeout(() => {
this.inputEle.focus()
}, 0)
}
if (button === '{clear}') {
this.inputValue = ''
}
console.log('onKeyPress', button)
}
}