We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c345bb4 commit 5e803eaCopy full SHA for 5e803ea
packages/form/src/label-wrap.vue
@@ -17,7 +17,11 @@ export default {
17
if (autoLabelWidth && autoLabelWidth !== 'auto') {
18
const marginLeft = parseInt(autoLabelWidth, 10) - this.computedWidth;
19
if (marginLeft) {
20
- style.marginLeft = marginLeft + 'px';
+ if(this.elForm.labelPosition === 'left'){
21
+ style.marginRight = marginLeft + 'px';
22
+ }else{
23
+ style.marginLeft = marginLeft + 'px';
24
+ }
25
}
26
27
return (<div class="el-form-item__label-wrap" style={style}>
0 commit comments