弹窗样式
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user