Dialog: remove unnecessary inline style

pull/3596/head
Leopoldthecoder 2017-03-18 08:24:23 +08:00 committed by 杨奕
parent 09761ca59b
commit a76547eaa3
2 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,7 @@
return `el-dialog--${ this.size }`;
},
style() {
return this.size === 'full' ? {} : { 'margin-bottom': '50px', 'top': this.top };
return this.size === 'full' ? {} : { 'top': this.top };
}
},

View File

@ -12,6 +12,7 @@
border-radius: var(--border-radius-small);
box-shadow: var(--dialog-box-shadow);
box-sizing: border-box;
margin-bottom: 50px;
@modifier tiny {
width: var(--dialog-tiny-width);
@ -28,6 +29,7 @@
@modifier full {
width: 100%;
top: 0;
margin-bottom: 0;
height: 100%;
overflow: auto;
}