Browse Source
fix: fix the issue of excessive line spacing in vbenForm (#6653)
* gap-2和 pb-4/2 重叠导致间距过宽,gap-x只保留列间距
pull/6667/head
ming4762
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
5 deletions
-
packages/@core/ui-kit/form-ui/src/form-render/form.vue
|
|
|
@ -43,12 +43,10 @@ const emits = defineEmits<{ |
|
|
|
|
|
|
|
const wrapperClass = computed(() => { |
|
|
|
const cls = ['flex']; |
|
|
|
if (props.layout === 'vertical') { |
|
|
|
cls.push(props.compact ? 'gap-x-2' : 'gap-x-4', 'flex-col grid'); |
|
|
|
} else if (props.layout === 'inline') { |
|
|
|
cls.push('flex-wrap gap-2'); |
|
|
|
if (props.layout === 'inline') { |
|
|
|
cls.push('flex-wrap gap-x-2'); |
|
|
|
} else { |
|
|
|
cls.push('gap-2 flex-col grid'); |
|
|
|
cls.push(props.compact ? 'gap-x-2' : 'gap-x-4', 'flex-col grid'); |
|
|
|
} |
|
|
|
return cn(...cls, props.wrapperClass); |
|
|
|
}); |
|
|
|
|