refactor(图表): 图形和图标支持设置内边距调整为0 #16143

This commit is contained in:
wangjiahao
2025-05-29 18:20:42 +08:00
committed by 王嘉豪
parent 20cfdf8cf2
commit 068b9778e5

View File

@@ -502,9 +502,16 @@ export function adaptCurThemeCommonStyle(component) {
// 背景融合-Begin 如果是大屏['CanvasBoard', 'CanvasIcon', 'Picture']组件不需要设置背景
if (
dvMainStore.dvInfo.type === 'dataV' &&
['CanvasBoard', 'CanvasIcon', 'Picture', 'Group', 'SvgTriangle', 'SvgStar'].includes(
component.component
)
[
'CanvasBoard',
'CanvasIcon',
'Picture',
'Group',
'SvgTriangle',
'SvgStar',
'RectShape',
'CircleShape'
].includes(component.component)
) {
component.commonBackground['backgroundColorSelect'] = false
component.commonBackground['innerPadding'] = 0