diff --git a/packages/components/form/src/label-wrap.ts b/packages/components/form/src/label-wrap.ts index 0f2a04361d..3894176b44 100644 --- a/packages/components/form/src/label-wrap.ts +++ b/packages/components/form/src/label-wrap.ts @@ -76,9 +76,9 @@ export default defineComponent({ const style = {} as CSSProperties if (autoLabelWidth && autoLabelWidth !== 'auto') { const marginWidth = Math.max(0, parseInt(autoLabelWidth, 10) - computedWidth.value) - const marginPositon = elForm.labelPosition === 'left' ? 'marginRight' : 'marginLeft' + const marginPosition = elForm.labelPosition === 'left' ? 'marginRight' : 'marginLeft' if (marginWidth) { - style[marginPositon] = marginWidth + 'px' + style[marginPosition] = marginWidth + 'px' } } return h(