fix(仪表板): 修复圆角属性无法影响图片等组件的问题

This commit is contained in:
wangjiahao 2024-04-12 11:12:35 +08:00
parent 7756cdd87d
commit 7f8926b5d6
2 changed files with 6 additions and 0 deletions

View File

@ -154,6 +154,9 @@ const componentBackgroundStyle = computed(() => {
} else {
style['background-color'] = colorRGBA
}
if (element.value.component !== 'UserView') {
style['overflow'] = 'hidden'
}
return style
}
return {}

View File

@ -789,6 +789,9 @@ const componentBackgroundStyle = computed(() => {
} else {
style['background-color'] = colorRGBA
}
if (element.value.component !== 'UserView') {
style['overflow'] = 'hidden'
}
return style
}
return {}