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 543a718Copy full SHA for 543a718
packages/form/src/label-wrap.vue
@@ -17,7 +17,7 @@ export default {
17
if (autoLabelWidth && autoLabelWidth !== 'auto') {
18
const marginLeft = parseInt(autoLabelWidth, 10) - this.computedWidth;
19
if (marginLeft) {
20
- style.marginLeft = marginLeft + 'px';
+ style[(this.elForm.labelPosition === 'left') ? 'marginRight' : 'marginLeft'] = marginLeft + 'px';
21
}
22
23
return (<div class="el-form-item__label-wrap" style={style}>
0 commit comments