This commit is contained in:
梁灏 2018-08-08 15:18:24 +08:00
parent ab719ff2be
commit 74ef0a6ae1
3 changed files with 7 additions and 3 deletions

View file

@ -28,7 +28,7 @@
computed: {
styles () {
let style = {};
if (this.width) style.width = `${this.width}px`;
if (this.width) style.minWidth = `${this.width}px`;
return style;
}
},