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

This commit is contained in:
MTrun 2022-03-10 20:05:05 +08:00
parent a1a2e260f6
commit d1c0cae68e
20 changed files with 49 additions and 107 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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