fixed auto width
This commit is contained in:
parent
2094a6bf81
commit
7e9c35e78d
@ -66,7 +66,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
let _width = this.$refs.keyboard.clientWidth - this.space * 10;
|
let _width = this.$refs.keyboard.clientWidth - this.space * 10;
|
||||||
let normal = _width / 10;
|
let normal = _width / 10;
|
||||||
if(this.width){
|
if(this.width != 'auto'){
|
||||||
normal = parseInt(this.width.replace('px',''));
|
normal = parseInt(this.width.replace('px',''));
|
||||||
}
|
}
|
||||||
const special = normal * 1.5 + this.space / 2;
|
const special = normal * 1.5 + this.space / 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user