From c919122415d09c83a4ffeaa171ee321f739f346a Mon Sep 17 00:00:00 2001 From: qiang Date: Sat, 18 Jan 2020 22:33:30 +0800 Subject: [PATCH] fix: app-v3 input cursorSpacing type --- src/core/view/mixins/keyboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/view/mixins/keyboard.js b/src/core/view/mixins/keyboard.js index ce9e8f0f0..9e64ca8fa 100644 --- a/src/core/view/mixins/keyboard.js +++ b/src/core/view/mixins/keyboard.js @@ -14,7 +14,7 @@ export default { name: 'Keyboard', props: { cursorSpacing: { - type: Number, + type: [Number, String], default: 0 }, adjustPosition: { @@ -63,7 +63,7 @@ export default { mode: this.adjustPosition ? 'adjustPan' : 'nothing', position: { top: rect.top, - height: rect.height + this.cursorSpacing + height: rect.height + (Number(this.cursorSpacing) || 0) } }) }) -- GitLab