|
@@ -84,11 +84,12 @@
|
|
|
return ret;
|
|
|
},
|
|
|
contentStyle() {
|
|
|
- let ret = {};
|
|
|
- const labelWidth = this.labelWidth || this.form.labelWidth;
|
|
|
- const form = this.form;
|
|
|
- if (form.labelPosition === 'top' || form.inline) return ret;
|
|
|
- if (labelWidth) ret.marginLeft = labelWidth;
|
|
|
+ var ret = {};
|
|
|
+ if (this.form.labelPosition === 'top' || this.form.inline) return ret;
|
|
|
+ var labelWidth = this.labelWidth || this.form.labelWidth;
|
|
|
+ if (labelWidth) {
|
|
|
+ ret.marginLeft = labelWidth;
|
|
|
+ }
|
|
|
return ret;
|
|
|
},
|
|
|
form() {
|