fix: [label-wrap] Fix misspellings (#3030)

Co-authored-by: wangbin <bin.wang2@cyclone-robotics.com>
This commit is contained in:
wangbincyzj
2021-08-25 09:47:41 +08:00
committed by GitHub
parent 08e5fc8662
commit 8830b2337a

View File

@@ -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(