ソースを参照

fix: 修改水波图的名称

mtrun 3 年 前
コミット
0d873e4ffa

+ 14 - 0
src/packages/components/Charts/Mores/WaterPolo/config.ts

@@ -0,0 +1,14 @@
+import { publicConfig } from '@/packages/public'
+import { CreateComponentType } from '@/packages/index.d'
+import { WaterPoloConfig } from './index'
+import cloneDeep from 'lodash/cloneDeep'
+  
+export const option = {
+  colors: ['#4fd2dd', '#235fa7'],
+}
+
+export default class Config extends publicConfig implements CreateComponentType {
+  public key = WaterPoloConfig.key
+  public chartConfig = cloneDeep(WaterPoloConfig)
+  public option = option
+}

+ 0 - 0
src/packages/components/Charts/Mores/Variable/config.vue → src/packages/components/Charts/Mores/WaterPolo/config.vue


+ 6 - 6
src/packages/components/Charts/Mores/Variable/index.ts → src/packages/components/Charts/Mores/WaterPolo/index.ts

@@ -1,12 +1,12 @@
-import image from '@/assets/images/chart/charts/water_variable.png'
+import image from '@/assets/images/chart/charts/water_WaterPolo.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
 
-export const VariableConfig: ConfigType = {
-  key: 'Variable',
-  chartKey: 'VVariable',
-  conKey: 'VCVariable',
-  title: '折线面积图',
+export const WaterPoloConfig: ConfigType = {
+  key: 'WaterPolo',
+  chartKey: 'VWaterPolo',
+  conKey: 'VCWaterPolo',
+  title: '水球图',
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.CHARTS,

+ 0 - 0
src/packages/components/Charts/Mores/Variable/index.vue → src/packages/components/Charts/Mores/WaterPolo/index.vue


+ 2 - 2
src/packages/components/Charts/Mores/index.ts

@@ -2,7 +2,7 @@ import { RadarConfig } from './Radar/index'
 import { FunnelConfig } from './Funnel/index'
 import { HeatmapConfig } from './Heatmap/index'
 import { PointConfig } from './Point/index'
-import { VariableConfig } from './Variable/index'
+import { WaterPoloConfig } from './WaterPolo/index'
 import { TreeMapConfig } from './TreeMap/index'
 
-export default [RadarConfig, FunnelConfig, HeatmapConfig,PointConfig, VariableConfig, TreeMapConfig]
+export default [RadarConfig, FunnelConfig, HeatmapConfig,PointConfig, WaterPoloConfig, TreeMapConfig]