mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix: [label-wrap] Fix misspellings (#3030)
Co-authored-by: wangbin <bin.wang2@cyclone-robotics.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user