mirror of https://github.com/ElemeFE/element
Dialog: remove unnecessary inline style
parent
09761ca59b
commit
a76547eaa3
|
@ -110,7 +110,7 @@
|
||||||
return `el-dialog--${ this.size }`;
|
return `el-dialog--${ this.size }`;
|
||||||
},
|
},
|
||||||
style() {
|
style() {
|
||||||
return this.size === 'full' ? {} : { 'margin-bottom': '50px', 'top': this.top };
|
return this.size === 'full' ? {} : { 'top': this.top };
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
border-radius: var(--border-radius-small);
|
border-radius: var(--border-radius-small);
|
||||||
box-shadow: var(--dialog-box-shadow);
|
box-shadow: var(--dialog-box-shadow);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
margin-bottom: 50px;
|
||||||
|
|
||||||
@modifier tiny {
|
@modifier tiny {
|
||||||
width: var(--dialog-tiny-width);
|
width: var(--dialog-tiny-width);
|
||||||
|
@ -28,6 +29,7 @@
|
||||||
@modifier full {
|
@modifier full {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue