Modal update width prop
This commit is contained in:
parent
04fb29abf4
commit
f03c4e6409
2 changed files with 92 additions and 54 deletions
|
@ -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 : {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue