refactor(数据大屏): 图形组件增加Svg矢量图形

This commit is contained in:
wangjiahao
2024-02-19 15:24:20 +08:00
parent 0a74c22171
commit 3e7165318c
11 changed files with 51 additions and 19 deletions

View File

@@ -11,7 +11,7 @@ export const styleData = [
{ key: 'borderWidth', label: '边框宽度', min: 0, max: 20, step: 1 },
{ key: 'borderStyle', label: '边框风格' },
{ key: 'borderColor', label: '边框颜色' },
{ key: 'borderRadius', label: '边框半径', min: 0, max: 50, step: 1 },
{ key: 'borderRadius', label: '圆角', min: 0, max: 50, step: 1 },
{ key: 'letterSpacing', label: '字间距', min: 0, max: 50, step: 1 },
{ key: 'fontSize', label: '字体大小', min: 0, max: 128, step: 1 },
{ key: 'activeFontSize', label: '激活字体大小', min: 0, max: 128, step: 1 },
@@ -38,7 +38,7 @@ export const styleMap = {
borderWidth: '边框宽度',
borderStyle: '边框风格',
borderColor: '边框颜色',
borderRadius: '边框半径',
borderRadius: '圆角',
fontSize: '字体大小',
fontWeight: '字体粗细',
lineHeight: '行高',

View File

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