Commit 7600fa2d authored by JingChao's avatar JingChao

keyboard

parent 747ce867
...@@ -229,9 +229,9 @@ export default { ...@@ -229,9 +229,9 @@ export default {
name: 'NumberKeyboard', name: 'NumberKeyboard',
components: {Key}, components: {Key},
props: { props: {
show: Boolean, // eslint-disable-line show: Boolean, // eslint-disable-line
title: String, // eslint-disable-line title: String, // eslint-disable-line
closeButtonText: String, // eslint-disable-line closeButtonText: String, // eslint-disable-line
theme: { theme: {
type: String, type: String,
default: 'default', default: 'default',
...@@ -315,10 +315,15 @@ export default { ...@@ -315,10 +315,15 @@ export default {
methods: { methods: {
closeKeyboard () { closeKeyboard () {
let vm = this let vm = this
this.show = false
let wrapper = document.querySelector('[vum-show-keyborad]') let wrapper = document.querySelector('[vum-show-keyborad]')
if (wrapper && vm.keyBoardPlugin) { 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) { 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