From 55d5f160a5232ee47cb17bfa369b62088c240c53 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?=
 <1262327911@qq.com>
Date: Mon, 26 Sep 2022 20:00:39 +0800
Subject: [PATCH] =?UTF-8?q?perf:=20=E8=AF=8D=E4=BA=91=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/packages/components/Informations/Mores/Image/index.ts   | 3 ++-
 .../components/Informations/Mores/WordCloud/config.vue      | 2 ++
 .../components/Informations/Mores/WordCloud/index.ts        | 3 ++-
 .../components/Informations/Mores/WordCloud/index.vue       | 4 ++--
 .../components/RequestTargetConfig/index.vue                | 6 +++++-
 5 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/src/packages/components/Informations/Mores/Image/index.ts b/src/packages/components/Informations/Mores/Image/index.ts
index dc8d7bde..ad186f30 100644
--- a/src/packages/components/Informations/Mores/Image/index.ts
+++ b/src/packages/components/Informations/Mores/Image/index.ts
@@ -1,5 +1,5 @@
 import image from '@/assets/images/chart/informations/photo.png'
-import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
+import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d'
 import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
 
 export const ImageConfig: ConfigType = {
@@ -10,5 +10,6 @@ export const ImageConfig: ConfigType = {
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.INFORMATIONS,
+  chartFrame: ChartFrameEnum.COMMON,
   image
 }
diff --git a/src/packages/components/Informations/Mores/WordCloud/config.vue b/src/packages/components/Informations/Mores/WordCloud/config.vue
index 3b7f2896..78934255 100644
--- a/src/packages/components/Informations/Mores/WordCloud/config.vue
+++ b/src/packages/components/Informations/Mores/WordCloud/config.vue
@@ -70,9 +70,11 @@ const sliderFormatTooltip = (v: number) => {
 const updateWidth = (value: number) => {
   props.optionData.series[0].width = `${value}%`
 }
+
 const updateHeight = (value: number) => {
   props.optionData.series[0].height = `${value}%`
 }
+
 const updateRotation = (value: number) => {
   props.optionData.series[0].rotationStep = value
   props.optionData.series[0].rotationRange = value === 0 ? [0, 0] : [-90, 90]
diff --git a/src/packages/components/Informations/Mores/WordCloud/index.ts b/src/packages/components/Informations/Mores/WordCloud/index.ts
index a8cfd789..7eb0c6ed 100644
--- a/src/packages/components/Informations/Mores/WordCloud/index.ts
+++ b/src/packages/components/Informations/Mores/WordCloud/index.ts
@@ -1,5 +1,5 @@
 import image from '@/assets/images/chart/informations/words_cloud.png'
-import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
+import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d'
 import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
 
 export const WordCloudConfig: ConfigType = {
@@ -10,5 +10,6 @@ export const WordCloudConfig: ConfigType = {
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.INFORMATIONS,
+  chartFrame: ChartFrameEnum.COMMON,
   image
 }
diff --git a/src/packages/components/Informations/Mores/WordCloud/index.vue b/src/packages/components/Informations/Mores/WordCloud/index.vue
index 7d29c8ef..520ee4ce 100644
--- a/src/packages/components/Informations/Mores/WordCloud/index.vue
+++ b/src/packages/components/Informations/Mores/WordCloud/index.vue
@@ -21,7 +21,7 @@ import { mergeTheme } from '@/packages/public/chart'
 import { useChartDataFetch } from '@/hooks'
 import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
 import { isPreview } from '@/utils'
-import { DatasetComponent, GridComponent, TooltipComponent, LegendComponent } from 'echarts/components'
+import { GridComponent, TooltipComponent, LegendComponent } from 'echarts/components'
 import dataJson from './data.json'
 
 const props = defineProps({
@@ -39,7 +39,7 @@ const props = defineProps({
   }
 })
 
-use([DatasetComponent, CanvasRenderer, BarChart, GridComponent, TooltipComponent, LegendComponent])
+use([CanvasRenderer, BarChart, GridComponent, TooltipComponent, LegendComponent])
 
 const replaceMergeArr = ref<string[]>()
 
diff --git a/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestTargetConfig/index.vue b/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestTargetConfig/index.vue
index 8ff47960..5ff6c6ff 100644
--- a/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestTargetConfig/index.vue
+++ b/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestTargetConfig/index.vue
@@ -74,7 +74,8 @@ import {
   radarUrl,
   heatMapUrl,
   scatterBasicUrl,
-  mapUrl
+  mapUrl,
+  wordCloudUrl
 } from '@/api/mock'
 
 const { HelpOutlineIcon } = icon.ionicons5
@@ -119,6 +120,9 @@ const apiList = [
   {
     value: `【地图数据】${mapUrl}`
   },
+  {
+    value: `【词云】${wordCloudUrl}`
+  },
 ]
 </script>