This commit is contained in:
2023-11-22 17:17:19 +08:00
parent 02c8bdbba7
commit 8e50a9af37

View File

@@ -20,6 +20,7 @@ export default {
maxLength: { default: '' }
},
data: () => ({
copy: true,
keyboard: null,
displayDefault: {
'{bksp}': 'backspace',
@@ -99,7 +100,13 @@ export default {
},
methods: {
onChange (input) {
this.$emit('onChange', input)
if (this.copy) {
this.$emit('onChange', this.input + input)
this.copy = !this.copy
return false
} else {
this.$emit('onChange', input)
}
},
onKeyPress (button, $event) {
// 点击关闭