mirror of https://github.com/ElemeFE/element
fix inline form label width
parent
f1913d991d
commit
d76d28dd54
|
@ -84,12 +84,11 @@
|
||||||
return ret;
|
return ret;
|
||||||
},
|
},
|
||||||
contentStyle() {
|
contentStyle() {
|
||||||
var ret = {};
|
let ret = {};
|
||||||
if (this.form.labelPosition === 'top') return ret;
|
const labelWidth = this.labelWidth || this.form.labelWidth;
|
||||||
var labelWidth = this.labelWidth || this.form.labelWidth;
|
const form = this.form;
|
||||||
if (labelWidth) {
|
if (form.labelPosition === 'top' || form.inline) return ret;
|
||||||
ret.marginLeft = labelWidth;
|
if (labelWidth) ret.marginLeft = labelWidth;
|
||||||
}
|
|
||||||
return ret;
|
return ret;
|
||||||
},
|
},
|
||||||
form() {
|
form() {
|
||||||
|
|
Loading…
Reference in New Issue