Modal update width prop

This commit is contained in:
梁灏 2017-07-18 10:24:21 +08:00
parent 04fb29abf4
commit f03c4e6409
2 changed files with 92 additions and 54 deletions

View file

@ -121,8 +121,9 @@
mainStyles () {
let style = {};
const width = parseInt(this.width);
const styleWidth = {
width: `${this.width}px`
width: width <= 100 ? `${width}%` : `${width}px`
};
const customStyle = this.styles ? this.styles : {};