Commit 962bde68 authored by JingChao's avatar JingChao

keyboard

parent 153ca5b6
......@@ -229,9 +229,9 @@ export default {
name: 'NumberKeyboard',
components: {Key},
props: {
show: Boolean, // eslint-disable-line
title: String, // eslint-disable-line
closeButtonText: String, // eslint-disable-line
show: Boolean, // eslint-disable-line
title: String, // eslint-disable-line
closeButtonText: String, // eslint-disable-line
theme: {
type: String,
default: 'default',
......@@ -315,10 +315,15 @@ export default {
methods: {
closeKeyboard () {
let vm = this
this.show = false
let wrapper = document.querySelector('[vum-show-keyborad]')
if (wrapper && vm.keyBoardPlugin) {
document.body.removeChild(wrapper)
this.show = false
try {
document.body.removeChild(wrapper)
} catch (e) {
}
} else if (vm.keyBoardPlugin === false && vm.hideOnClickOutside) {
this.onClose()
}
},
showNumberKeyboard (options) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment