diff --git a/nezha-fronted/src/components/common/ChartDiagram/diagram.vue b/nezha-fronted/src/components/common/ChartDiagram/diagram.vue index 3a7378b4c..f6c6d9ddc 100644 --- a/nezha-fronted/src/components/common/ChartDiagram/diagram.vue +++ b/nezha-fronted/src/components/common/ChartDiagram/diagram.vue @@ -405,6 +405,26 @@ export default { iconName: 'nz-icon-EMAC1', iconColor: '#0c62e3' } + }, + { + name: 'rectangle2', + icon: 'icon-rect', + data: { + text: 'rect', + rect: { + width: 100, + height: 100 + }, + paddingLeft: 10, + paddingRight: 10, + paddingTop: 10, + paddingBottom: 10, + name: 'rectangleImg2', + icon: '\ue62f', + iconFamily: 'nz-icon', + iconName: 'nz-icon-circle', + iconColor: '#0c62e3' + } } ] } @@ -884,6 +904,7 @@ export default { const selLevel = pen.data.valueMapping.find(item => item.level === maxLevel) if (selLevel) { pen.fontColor = selLevel.color.text + pen.fillStyle = selLevel.color.fill if (pen.iconFamily) { pen.fillStyle = 'transparent' pen.iconColor = selLevel.color.fill @@ -1675,6 +1696,26 @@ export default { iconName: 'nz-icon-EMAC1', iconColor: '#0c62e3' } + }, + { + name: 'rectangle2', + icon: 'icon-rect', + data: { + text: 'rect', + rect: { + width: 100, + height: 100 + }, + paddingLeft: 10, + paddingRight: 10, + paddingTop: 10, + paddingBottom: 10, + name: 'rectangleImg2', + icon: '\ue62f', + iconFamily: 'nz-icon', + iconName: 'nz-icon-circle', + iconColor: '#0c62e3' + } } ] }]