fix(查询组件): 查询条件名称设置为上方显示并进行隐藏时,选项框的位置未变化 #15491

This commit is contained in:
dataeaseShu
2025-03-26 11:34:58 +08:00
committed by xuwei-fit2cloud
parent bbc8d29046
commit 598df69abd

View File

@@ -750,15 +750,19 @@ const labelStyle = computed(() => {
return style
})
const comLayout = computed(() => {
return customStyle.labelShow ? customStyle.layout : 'horizontal'
})
const paddingTop = computed<CSSProperties>(() => {
return {
paddingTop: customStyle.layout !== 'horizontal' ? customStyle.nameboxSpacing + 22 + 'px' : '0'
paddingTop: comLayout.value !== 'horizontal' ? customStyle.nameboxSpacing + 22 + 'px' : '0'
}
})
const marginRight = computed<CSSProperties>(() => {
return {
marginRight: customStyle.layout === 'horizontal' ? customStyle.nameboxSpacing + 'px' : '8px'
marginRight: comLayout.value === 'horizontal' ? customStyle.nameboxSpacing + 'px' : '8px'
}
})
@@ -784,11 +788,7 @@ const autoStyle = computed(() => {
{{ customStyle.title }}
</p>
<div
:class="[
'v-query',
customStyle.layout,
customStyle.titleShow && !!customStyle.title && 'title-show'
]"
:class="['v-query', comLayout, customStyle.titleShow && !!customStyle.title && 'title-show']"
@dragover.prevent.stop="dragover"
@drop.prevent.stop="drop"
>