fix(数据大屏、仪表板): 修复Tab内组件小尺寸移动可能未保存问题

This commit is contained in:
wangjiahao 2024-10-14 14:08:01 +08:00
parent 3760e58166
commit bb9066da99

View File

@ -865,7 +865,13 @@ const componentBackgroundStyle = computed(() => {
innerPadding, innerPadding,
borderRadius borderRadius
} = element.value.commonBackground } = element.value.commonBackground
const style = { padding: innerPadding * scale.value + 'px', borderRadius: borderRadius + 'px' } const innerPaddingTarget = ['Group', 'DeTabs'].includes(element.value.component)
? 0
: innerPadding
const style = {
padding: innerPaddingTarget * scale.value + 'px',
borderRadius: borderRadius + 'px'
}
let colorRGBA = '' let colorRGBA = ''
if (backgroundColorSelect && backgroundColor) { if (backgroundColorSelect && backgroundColor) {
colorRGBA = backgroundColor colorRGBA = backgroundColor