From da9fba450c5074ada3f62005115f898b6ea325ca Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Mon, 31 Mar 2025 23:25:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=BE=E8=A1=A8):=20=E5=AD=90=E5=BC=B9?= =?UTF-8?q?=E5=9B=BE=E6=B7=BB=E5=8A=A0=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/assets/svg/bullet-graph-dark.svg | 15 +++++++++++++++ .../src/assets/svg/bullet-graph-origin.svg | 15 +++++++++++++++ .../core-frontend/src/assets/svg/bullet-graph.svg | 15 +++++++++++++++ .../data-visualization/RealTimeGroup.vue | 4 +++- .../data-visualization/RealTimeGroupInner.vue | 4 +++- .../data-visualization/RealTimeListTree.vue | 4 +++- .../src/components/icon-group/chart-dark-list.ts | 4 +++- .../src/components/icon-group/chart-list.ts | 4 +++- .../views/chart/components/editor/util/chart.ts | 2 +- 9 files changed, 61 insertions(+), 6 deletions(-) create mode 100644 core/core-frontend/src/assets/svg/bullet-graph-dark.svg create mode 100644 core/core-frontend/src/assets/svg/bullet-graph-origin.svg create mode 100644 core/core-frontend/src/assets/svg/bullet-graph.svg diff --git a/core/core-frontend/src/assets/svg/bullet-graph-dark.svg b/core/core-frontend/src/assets/svg/bullet-graph-dark.svg new file mode 100644 index 0000000000..69bfd6ad5b --- /dev/null +++ b/core/core-frontend/src/assets/svg/bullet-graph-dark.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/core/core-frontend/src/assets/svg/bullet-graph-origin.svg b/core/core-frontend/src/assets/svg/bullet-graph-origin.svg new file mode 100644 index 0000000000..69bfd6ad5b --- /dev/null +++ b/core/core-frontend/src/assets/svg/bullet-graph-origin.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/core/core-frontend/src/assets/svg/bullet-graph.svg b/core/core-frontend/src/assets/svg/bullet-graph.svg new file mode 100644 index 0000000000..0d54e3d835 --- /dev/null +++ b/core/core-frontend/src/assets/svg/bullet-graph.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/core/core-frontend/src/components/data-visualization/RealTimeGroup.vue b/core/core-frontend/src/components/data-visualization/RealTimeGroup.vue index 92fe358186..470d20efb7 100644 --- a/core/core-frontend/src/components/data-visualization/RealTimeGroup.vue +++ b/core/core-frontend/src/components/data-visualization/RealTimeGroup.vue @@ -77,6 +77,7 @@ import ComposeShow from '@/components/data-visualization/canvas/ComposeShow.vue' import { composeStoreWithOut } from '@/store/modules/data-visualization/compose' import circlePackingOrigin from '@/assets/svg/circle-packing-origin.svg' import RealTimeTab from '@/components/data-visualization/RealTimeTab.vue' +import bulletGraphOrigin from '@/assets/svg/bullet-graph-origin.svg' import { syncViewTitle } from '@/utils/canvasUtils' const dropdownMore = ref(null) const lockStore = lockStoreWithOut() @@ -245,7 +246,8 @@ const iconMap = { 'word-cloud-origin': wordCloudOrigin, 't-heatmap-origin': tHeatmapOrigin, group: group, - 'circle-packing-origin': circlePackingOrigin + 'circle-packing-origin': circlePackingOrigin, + 'bullet-graph-origin': bulletGraphOrigin } const getIconName = item => { if (item.component === 'UserView') { diff --git a/core/core-frontend/src/components/data-visualization/RealTimeGroupInner.vue b/core/core-frontend/src/components/data-visualization/RealTimeGroupInner.vue index 5d7c64dd91..db8a361598 100644 --- a/core/core-frontend/src/components/data-visualization/RealTimeGroupInner.vue +++ b/core/core-frontend/src/components/data-visualization/RealTimeGroupInner.vue @@ -74,6 +74,7 @@ import ContextMenuAsideDetails from '@/components/data-visualization/canvas/Cont import ComposeShow from '@/components/data-visualization/canvas/ComposeShow.vue' import { composeStoreWithOut } from '@/store/modules/data-visualization/compose' import circlePackingOrigin from '@/assets/svg/circle-packing-origin.svg' +import bulletGraphOrigin from '@/assets/svg/bullet-graph-origin.svg' import { syncViewTitle } from '@/utils/canvasUtils' const dropdownMore = ref(null) const lockStore = lockStoreWithOut() @@ -242,7 +243,8 @@ const iconMap = { 'word-cloud-origin': wordCloudOrigin, 't-heatmap-origin': tHeatmapOrigin, group: group, - 'circle-packing-origin': circlePackingOrigin + 'circle-packing-origin': circlePackingOrigin, + 'bullet-graph-origin': bulletGraphOrigin } const getIconName = item => { if (item.component === 'UserView') { diff --git a/core/core-frontend/src/components/data-visualization/RealTimeListTree.vue b/core/core-frontend/src/components/data-visualization/RealTimeListTree.vue index 56ead35e30..d21e18087c 100644 --- a/core/core-frontend/src/components/data-visualization/RealTimeListTree.vue +++ b/core/core-frontend/src/components/data-visualization/RealTimeListTree.vue @@ -81,6 +81,7 @@ import { contextmenuStoreWithOut } from '@/store/modules/data-visualization/cont import RealTimeTab from '@/components/data-visualization/RealTimeTab.vue' import { useI18n } from '@/hooks/web/useI18n' import circlePackingOrigin from '@/assets/svg/circle-packing-origin.svg' +import bulletGraphOrigin from '@/assets/svg/bullet-graph-origin.svg' import { checkJoinGroup, syncViewTitle } from '@/utils/canvasUtils' import { useEmitt } from '@/hooks/web/useEmitt' const dropdownMore = ref(null) @@ -333,7 +334,8 @@ const iconMap = { 't-heatmap-origin': tHeatmapOrigin, 'picture-group-origin': pictureGroupOrigin, group: group, - 'circle-packing-origin': circlePackingOrigin + 'circle-packing-origin': circlePackingOrigin, + 'bullet-graph-origin': bulletGraphOrigin } const getIconName = item => { if (item.component === 'UserView') { diff --git a/core/core-frontend/src/components/icon-group/chart-dark-list.ts b/core/core-frontend/src/components/icon-group/chart-dark-list.ts index 600db62b32..51cd042625 100644 --- a/core/core-frontend/src/components/icon-group/chart-dark-list.ts +++ b/core/core-frontend/src/components/icon-group/chart-dark-list.ts @@ -43,6 +43,7 @@ import waterfallDark from '@/assets/svg/waterfall-dark.svg' import wordCloudDark from '@/assets/svg/word-cloud-dark.svg' import tHeatmapDark from '@/assets/svg/t-heatmap-dark.svg' import circlePackingDark from '@/assets/svg/circle-packing-dark.svg' +import bulletGraphDark from '@/assets/svg/bullet-graph-dark.svg' const iconChartDarkMap = { 'area-dark': areaDark, @@ -89,7 +90,8 @@ const iconChartDarkMap = { 'waterfall-dark': waterfallDark, 'word-cloud-dark': wordCloudDark, 't-heatmap-dark': tHeatmapDark, - 'circle-packing-dark': circlePackingDark + 'circle-packing-dark': circlePackingDark, + 'bullet-graph-dark': bulletGraphDark } export { iconChartDarkMap } diff --git a/core/core-frontend/src/components/icon-group/chart-list.ts b/core/core-frontend/src/components/icon-group/chart-list.ts index 02e6ba93c9..63653c6f37 100644 --- a/core/core-frontend/src/components/icon-group/chart-list.ts +++ b/core/core-frontend/src/components/icon-group/chart-list.ts @@ -46,6 +46,7 @@ import pictureGroup from '@/assets/svg/picture-group.svg' import filter from '@/assets/svg/filter.svg' import outerParams from '@/assets/svg/icon_params_setting.svg' import circlePacking from '@/assets/svg/circle-packing.svg' +import bulletGraph from '@/assets/svg/bullet-graph.svg' const iconChartMap = { 'area-stack': areaStack, @@ -95,7 +96,8 @@ const iconChartMap = { 'picture-group': pictureGroup, filter: filter, outerParams: outerParams, - 'circle-packing': circlePacking + 'circle-packing': circlePacking, + 'bullet-graph': bulletGraph } export { iconChartMap } diff --git a/core/core-frontend/src/views/chart/components/editor/util/chart.ts b/core/core-frontend/src/views/chart/components/editor/util/chart.ts index 483aa039cb..81e4f5410d 100644 --- a/core/core-frontend/src/views/chart/components/editor/util/chart.ts +++ b/core/core-frontend/src/views/chart/components/editor/util/chart.ts @@ -1436,7 +1436,7 @@ export const CHART_TYPE_CONFIGS = [ category: 'compare', value: 'bullet-graph', title: t('chart.bullet_chart'), - icon: '' + icon: 'bullet-graph' } ] },