From 7e9c35e78df09a2f1765e03ee73aec0ab2b6b8ec Mon Sep 17 00:00:00 2001 From: callmeyan Date: Mon, 8 Feb 2021 20:23:25 +0800 Subject: [PATCH] fixed auto width --- src/components/Keyboard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Keyboard.vue b/src/components/Keyboard.vue index 703a732..3644b58 100644 --- a/src/components/Keyboard.vue +++ b/src/components/Keyboard.vue @@ -66,7 +66,7 @@ export default { this.$nextTick(() => { let _width = this.$refs.keyboard.clientWidth - this.space * 10; let normal = _width / 10; - if(this.width){ + if(this.width != 'auto'){ normal = parseInt(this.width.replace('px','')); } const special = normal * 1.5 + this.space / 2;