Преглед изворни кода

fix: 去除配置文件里的 node 指向

MTrun пре 3 година
родитељ
комит
55c8314613

+ 3 - 6
src/packages/components/Charts/Maps/MapChine/index.ts

@@ -1,17 +1,14 @@
-import MapChine from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/charts/map.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
 
 export const MapChineConfig: ConfigType = {
-  key: 'VMapChine',
+  key: 'MapChine',
+  chartKey: 'VMapChine',
   conKey: 'VCMapChine',
   title: '北京地图',
   category: ChatCategoryEnum.MAP,
   categoryName: ChatCategoryEnumName.MAP,
   package: PackagesCategoryEnum.CHARTS,
-  node: () => MapChine,
-  conNode: () => Configuration,
-  image: image
+  image
 }

+ 3 - 6
src/packages/components/Charts/Mores/Funnel/index.ts

@@ -1,17 +1,14 @@
-import Funnel from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/charts/funnel.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
 
 export const FunnelConfig: ConfigType = {
-  key: 'VFunnel',
+  key: 'Funnel',
+  chartKey: 'VFunnel',
   conKey: 'VCFunnel',
   title: '漏斗图',
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.CHARTS,
-  node: () => Funnel,
-  conNode: () => Configuration,
-  image: image
+  image
 }

+ 3 - 6
src/packages/components/Charts/Mores/Heatmap/index.ts

@@ -1,17 +1,14 @@
-import Heatmap from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/charts/heatmap.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
 
 export const HeatmapConfig: ConfigType = {
-  key: 'VHeatmap',
+  key: 'Heatmap',
+  chartKey: 'VHeatmap',
   conKey: 'VCHeatmap',
   title: '热力图',
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.CHARTS,
-  node: () => Heatmap,
-  conNode: () => Configuration,
-  image: image
+  image
 }

+ 3 - 6
src/packages/components/Charts/Mores/Point/index.ts

@@ -1,17 +1,14 @@
-import Point from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/charts/Point.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
 
 export const PointConfig: ConfigType = {
-  key: 'VPoint',
+  key: 'Point',
+  chartKey: 'VPoint',
   conKey: 'VCPoint',
   title: '热力图',
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.CHARTS,
-  node: () => Point,
-  conNode: () => Configuration,
-  image: image
+  image
 }

+ 3 - 6
src/packages/components/Charts/Mores/Radar/index.ts

@@ -1,17 +1,14 @@
-import Radar from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/charts/radar.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
 
 export const RadarConfig: ConfigType = {
-  key: 'VRadar',
+  key: 'Radar',
+  chartKey: 'VRadar',
   conKey: 'VCRadar',
   title: '雷达',
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.CHARTS,
-  node: () => Radar,
-  conNode: () => Configuration,
-  image: image
+  image
 }

+ 3 - 6
src/packages/components/Charts/Mores/TreeMap/index.ts

@@ -1,17 +1,14 @@
-import TreeMap from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/charts/tree_map.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
 
 export const TreeMapConfig: ConfigType = {
-  key: 'VTreeMap',
+  key: 'TreeMap',
+  chartKey: 'VTreeMap',
   conKey: 'VCTreeMap',
   title: '树形分布',
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.CHARTS,
-  node: () => TreeMap,
-  conNode: () => Configuration,
-  image: image
+  image
 }

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

@@ -1,17 +1,14 @@
-import Variable from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/charts/water_variable.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
 
 export const VariableConfig: ConfigType = {
-  key: 'VVariable',
+  key: 'Variable',
+  chartKey: 'VVariable',
   conKey: 'VCVariable',
   title: '折线面积图',
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.CHARTS,
-  node: () => Variable,
-  conNode: () => Configuration,
-  image: image
+  image
 }

+ 2 - 5
src/packages/components/Decorates/Borders/borderCommon/index.ts

@@ -1,17 +1,14 @@
-import BorderCommon from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/decorates/border.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
 
 export const BorderCommonConfig: ConfigType = {
-  key: 'VBorderCommon',
+  key: 'BorderCommon',
+  chartKey: 'VBorderCommon',
   conKey: 'VCBorderCommon',
   title: '边框',
   category: ChatCategoryEnum.BORDER,
   categoryName: ChatCategoryEnumName.BORDER,
   package: PackagesCategoryEnum.DECORATES,
-  node: () => BorderCommon,
-  conNode: () => Configuration,
   image
 }

+ 2 - 4
src/packages/components/Decorates/Mores/Number/index.ts

@@ -1,17 +1,15 @@
-import Number from './index.vue'
 import Configuration from './config.vue'
 import image from '@/assets/images/chart/decorates/number.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
 
 export const NumberConfig: ConfigType = {
-  key: 'VNumber',
+  key: 'Number',
+  chartKey: 'VNumber',
   conKey: 'VCNumber',
   title: '数字翻牌',
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.DECORATES,
-  node: () => Number,
-  conNode: () => Configuration,
   image
 }

+ 2 - 5
src/packages/components/Decorates/Mores/Time/index.ts

@@ -1,17 +1,14 @@
-import Time from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/decorates/time.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
 
 export const TimeConfig: ConfigType = {
-  key: 'VTime',
+  key: 'Time',
+  chartKey: 'VTime',
   conKey: 'VCTime',
   title: '时间',
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.DECORATES,
-  node: () => Time,
-  conNode: () => Configuration,
   image
 }

+ 2 - 5
src/packages/components/Decorates/Mores/Weather/index.ts

@@ -1,17 +1,14 @@
-import Weather from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/decorates/weather.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
 
 export const WeatherConfig: ConfigType = {
-  key: 'VWeather',
+  key: 'Weather',
+  chartKey: 'VWeather',
   conKey: 'VCWeather',
   title: '天气',
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.DECORATES,
-  node: () => Weather,
-  conNode: () => Configuration,
   image
 }

+ 2 - 5
src/packages/components/Decorates/Mores/WeatherTime/index.ts

@@ -1,17 +1,14 @@
-import WeatherTime from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/decorates/weather_time.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
 
 export const WeatherTimeConfig: ConfigType = {
-  key: 'VWeatherTime',
+  key: 'WeatherTime',
+  chartKey: 'VWeatherTime',
   conKey: 'VCWeatherTime',
   title: '天气和时间',
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.DECORATES,
-  node: () => WeatherTime,
-  conNode: () => Configuration,
   image
 }

+ 2 - 5
src/packages/components/Informations/Mores/Image/index.ts

@@ -1,17 +1,14 @@
-import Image from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/informations/photo.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
 
 export const ImageConfig: ConfigType = {
-  key: 'VImage',
+  key: 'Image',
+  chartKey: 'VImage',
   conKey: 'VCImage',
   title: '图片',
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.INFORMATION,
-  node: () => Image,
-  conNode: () => Configuration,
   image
 }

+ 2 - 4
src/packages/components/Informations/Mores/TextCloud/index.ts

@@ -1,17 +1,15 @@
-import TextCloud from './index.vue'
 import Configuration from './config.vue'
 import image from '@/assets/images/chart/informations/words_cloud.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
 
 export const TextCloudConfig: ConfigType = {
-  key: 'VTextCloud',
+  key: 'TextCloud',
+  chartKey: 'VTextCloud',
   conKey: 'VCTextCloud',
   title: '词云',
   category: ChatCategoryEnum.MORE,
   categoryName: ChatCategoryEnumName.MORE,
   package: PackagesCategoryEnum.INFORMATION,
-  node: () => TextCloud,
-  conNode: () => Configuration,
   image
 }

+ 3 - 6
src/packages/components/Informations/Texts/TextCommon/index.ts

@@ -1,17 +1,14 @@
-import TextCommon from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/informations/text_static.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
 
 export const TextCommonConfig: ConfigType = {
-  key: 'VText',
-  conKey: 'VCText',
+  key: 'TextCommon',
+  chartKey: 'VTextCommon',
+  conKey: 'VCTextCommon',
   title: '文字',
   category: ChatCategoryEnum.TEXT,
   categoryName: ChatCategoryEnumName.TEXT,
   package: PackagesCategoryEnum.INFORMATION,
-  node: () => TextCommon,
-  conNode: () => Configuration,
   image
 }

+ 2 - 5
src/packages/components/Informations/Titles/TitleBevelAngle/index.ts

@@ -1,17 +1,14 @@
-import TitleBevelAngle from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/informations/title_diamond2.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
 
 export const TitleBevelAngleConfig: ConfigType = {
-  key: 'VTitleBevelAngle',
+  key: 'TitleBevelAngle',
+  chartKey: 'VTitleBevelAngle',
   conKey: 'VCTitleBevelAngle',
   title: '斜角标题',
   category: ChatCategoryEnum.TITLE,
   categoryName: ChatCategoryEnumName.TITLE,
   package: PackagesCategoryEnum.INFORMATION,
-  node: () => TitleBevelAngle,
-  conNode: () => Configuration,
   image
 }

+ 3 - 6
src/packages/components/Informations/Titles/TitleCommon/index.ts

@@ -1,17 +1,14 @@
-import TitleCommon from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/informations/title_diamond.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
 
 export const TitleCommonConfig: ConfigType = {
-  key: 'VText',
-  conKey: 'VCText',
+  key: 'TitleCommon',
+  chartKey: 'VTitleCommon',
+  conKey: 'VCTitleCommon',
   title: '普通标题',
   category: ChatCategoryEnum.TITLE,
   categoryName: ChatCategoryEnumName.TITLE,
   package: PackagesCategoryEnum.INFORMATION,
-  node: () => TitleCommon,
-  conNode: () => Configuration,
   image
 }

+ 2 - 5
src/packages/components/Informations/Titles/TitlePro/index.ts

@@ -1,17 +1,14 @@
-import TitlePro from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/informations/title_main.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
 
 export const TitleProConfig: ConfigType = {
-  key: 'VTitlePro',
+  key: 'TitlePro',
+  chartKey: 'VTitlePro',
   conKey: 'VCTitlePro',
   title: '中心标题',
   category: ChatCategoryEnum.TITLE,
   categoryName: ChatCategoryEnumName.TITLE,
   package: PackagesCategoryEnum.INFORMATION,
-  node: () => TitlePro,
-  conNode: () => Configuration,
   image
 }

+ 2 - 5
src/packages/components/Tables/Tables/TableCategory/index.ts

@@ -1,17 +1,14 @@
-import TableCategory from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/Tables/tables_categary.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
 
 export const TableCategoryConfig: ConfigType = {
-  key: 'VTableCategory',
+  key: 'TableCategory',
+  chartKey: 'VTableCategory',
   conKey: 'VCableCategory',
   title: '归类表格',
   category: ChatCategoryEnum.TABLE,
   categoryName: ChatCategoryEnumName.TABLE,
   package: PackagesCategoryEnum.TABLES,
-  node: () => TableCategory,
-  conNode: () => Configuration,
   image
 }

+ 2 - 5
src/packages/components/Tables/Tables/tableCommon/index.ts

@@ -1,17 +1,14 @@
-import TableCommon from './index.vue'
-import Configuration from './config.vue'
 import image from '@/assets/images/chart/Tables/tables.png'
 import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
 import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
 
 export const TableCommonConfig: ConfigType = {
-  key: 'VTableCommon',
+  key: 'TableCommon',
+  chartKey: 'VTableCommon',
   conKey: 'VCTableCommon',
   title: '表格',
   category: ChatCategoryEnum.TABLE,
   categoryName: ChatCategoryEnumName.TABLE,
   package: PackagesCategoryEnum.TABLES,
-  node: () => TableCommon,
-  conNode: () => Configuration,
   image
 }