fixed auto width

This commit is contained in:
LittleBoy 2021-02-08 20:23:25 +08:00
parent 2094a6bf81
commit 7e9c35e78d

View File

@ -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;