键盘
This commit is contained in:
@@ -20,6 +20,7 @@ export default {
|
|||||||
maxLength: { default: '' }
|
maxLength: { default: '' }
|
||||||
},
|
},
|
||||||
data: () => ({
|
data: () => ({
|
||||||
|
copy: true,
|
||||||
keyboard: null,
|
keyboard: null,
|
||||||
displayDefault: {
|
displayDefault: {
|
||||||
'{bksp}': 'backspace',
|
'{bksp}': 'backspace',
|
||||||
@@ -99,7 +100,13 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onChange (input) {
|
onChange (input) {
|
||||||
|
if (this.copy) {
|
||||||
|
this.$emit('onChange', this.input + input)
|
||||||
|
this.copy = !this.copy
|
||||||
|
return false
|
||||||
|
} else {
|
||||||
this.$emit('onChange', input)
|
this.$emit('onChange', input)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onKeyPress (button, $event) {
|
onKeyPress (button, $event) {
|
||||||
// 点击关闭
|
// 点击关闭
|
||||||
|
|||||||
Reference in New Issue
Block a user