fix: 修改配置项目

This commit is contained in:
MTrun 2022-01-25 11:09:32 +08:00
parent 953b8c3486
commit bbeba4a8d8
78 changed files with 86 additions and 55 deletions

View File

@ -1,6 +1,6 @@
import { getUUID } from '@/utils' import { getUUID } from '@/utils'
export class Config { export default class Config {
name: string = 'BarCommon' name: string = 'BarCommon'
id: string = getUUID() id: string = getUUID()
attr = { w: 500, h: 300 } attr = { w: 500, h: 300 }

View File

@ -1,6 +1,6 @@
import BarCommon from './index.vue' import BarCommon from './index.vue'
import image from '@/assets/images/chart/charts/bar_x.png' import image from '@/assets/images/chart/charts/bar_x.png'
import { ConfigType } 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 BarCommonConfig: ConfigType = { export const BarCommonConfig: ConfigType = {
@ -8,6 +8,7 @@ export const BarCommonConfig: ConfigType = {
title: '柱状图', title: '柱状图',
category: ChatCategoryEnum.BAR, category: ChatCategoryEnum.BAR,
categoryName: ChatCategoryEnumName.BAR, categoryName: ChatCategoryEnumName.BAR,
package: PackagesCategoryEnum.CHARTS,
node: BarCommon, node: BarCommon,
image: image image: image
} }

View File

@ -1,6 +1,6 @@
import BarCrossrange from './index.vue' import BarCrossrange from './index.vue'
import image from '@/assets/images/chart/charts/bar_y.png' import image from '@/assets/images/chart/charts/bar_y.png'
import { ConfigType } 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 BarCrossrangefig: ConfigType = { export const BarCrossrangefig: ConfigType = {
@ -8,6 +8,7 @@ export const BarCrossrangefig: ConfigType = {
title: '横向柱状图', title: '横向柱状图',
category: ChatCategoryEnum.BAR, category: ChatCategoryEnum.BAR,
categoryName: ChatCategoryEnumName.BAR, categoryName: ChatCategoryEnumName.BAR,
package: PackagesCategoryEnum.CHARTS,
node: BarCrossrange, node: BarCrossrange,
image: image image: image
} }

View File

@ -1,6 +1,6 @@
import LineCommon from './index.vue' import LineCommon from './index.vue'
import image from '@/assets/images/chart/charts/line.png' import image from '@/assets/images/chart/charts/line.png'
import { ConfigType } 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 LineCommonConfig: ConfigType = { export const LineCommonConfig: ConfigType = {
@ -8,6 +8,7 @@ export const LineCommonConfig: ConfigType = {
title: '折线图', title: '折线图',
category: ChatCategoryEnum.LINE, category: ChatCategoryEnum.LINE,
categoryName: ChatCategoryEnumName.LINE, categoryName: ChatCategoryEnumName.LINE,
package: PackagesCategoryEnum.CHARTS,
node: LineCommon, node: LineCommon,
image: image image: image
} }

View File

@ -1,6 +1,6 @@
import LineGradientSingle from './index.vue' import LineGradientSingle from './index.vue'
import image from '@/assets/images/chart/charts/line_gradient_single.png' import image from '@/assets/images/chart/charts/line_gradient_single.png'
import { ConfigType } 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 LineGradientSingleConfig: ConfigType = { export const LineGradientSingleConfig: ConfigType = {
@ -8,6 +8,7 @@ export const LineGradientSingleConfig: ConfigType = {
title: '折线面积图', title: '折线面积图',
category: ChatCategoryEnum.LINE, category: ChatCategoryEnum.LINE,
categoryName: ChatCategoryEnumName.LINE, categoryName: ChatCategoryEnumName.LINE,
package: PackagesCategoryEnum.CHARTS,
node: LineGradientSingle, node: LineGradientSingle,
image: image image: image
} }

View File

@ -1,6 +1,6 @@
import LineGradients from './index.vue' import LineGradients from './index.vue'
import image from '@/assets/images/chart/charts/line_gradient2.png' import image from '@/assets/images/chart/charts/line_gradient2.png'
import { ConfigType } 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 LineGradientsConfig: ConfigType = { export const LineGradientsConfig: ConfigType = {
@ -8,6 +8,7 @@ export const LineGradientsConfig: ConfigType = {
title: '折线面积图', title: '折线面积图',
category: ChatCategoryEnum.LINE, category: ChatCategoryEnum.LINE,
categoryName: ChatCategoryEnumName.LINE, categoryName: ChatCategoryEnumName.LINE,
package: PackagesCategoryEnum.CHARTS,
node: LineGradients, node: LineGradients,
image: image image: image
} }

View File

@ -1,6 +1,6 @@
import MapChine from './index.vue' import MapChine from './index.vue'
import image from '@/assets/images/chart/charts/map.png' import image from '@/assets/images/chart/charts/map.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const MapChineConfig: ConfigType = {
title: '北京地图', title: '北京地图',
category: ChatCategoryEnum.MAP, category: ChatCategoryEnum.MAP,
categoryName: ChatCategoryEnumName.MAP, categoryName: ChatCategoryEnumName.MAP,
package: PackagesCategoryEnum.CHARTS,
node: MapChine, node: MapChine,
image: image image: image
} }

View File

@ -1,6 +1,6 @@
import Funnel from './index.vue' import Funnel from './index.vue'
import image from '@/assets/images/chart/charts/funnel.png' import image from '@/assets/images/chart/charts/funnel.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const FunnelConfig: ConfigType = {
title: '漏斗图', title: '漏斗图',
category: ChatCategoryEnum.MORE, category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE, categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.CHARTS,
node: Funnel, node: Funnel,
image: image image: image
} }

View File

@ -1,6 +1,6 @@
import Heatmap from './index.vue' import Heatmap from './index.vue'
import image from '@/assets/images/chart/charts/heatmap.png' import image from '@/assets/images/chart/charts/heatmap.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const HeatmapConfig: ConfigType = {
title: '热力图', title: '热力图',
category: ChatCategoryEnum.MORE, category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE, categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.CHARTS,
node: Heatmap, node: Heatmap,
image: image image: image
} }

View File

@ -1,6 +1,6 @@
import Point from './index.vue' import Point from './index.vue'
import image from '@/assets/images/chart/charts/Point.png' import image from '@/assets/images/chart/charts/Point.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const PointConfig: ConfigType = {
title: '热力图', title: '热力图',
category: ChatCategoryEnum.MORE, category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE, categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.CHARTS,
node: Point, node: Point,
image: image image: image
} }

View File

@ -1,6 +1,6 @@
import Radar from './index.vue' import Radar from './index.vue'
import image from '@/assets/images/chart/charts/radar.png' import image from '@/assets/images/chart/charts/radar.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const RadarConfig: ConfigType = {
title: '雷达', title: '雷达',
category: ChatCategoryEnum.MORE, category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE, categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.CHARTS,
node: Radar, node: Radar,
image: image image: image
} }

View File

@ -1,6 +1,6 @@
import TreeMap from './index.vue' import TreeMap from './index.vue'
import image from '@/assets/images/chart/charts/tree_map.png' import image from '@/assets/images/chart/charts/tree_map.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const TreeMapConfig: ConfigType = {
title: '树形分布', title: '树形分布',
category: ChatCategoryEnum.MORE, category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE, categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.CHARTS,
node: TreeMap, node: TreeMap,
image: image image: image
} }

View File

@ -1,6 +1,6 @@
import Variable from './index.vue' import Variable from './index.vue'
import image from '@/assets/images/chart/charts/water_variable.png' import image from '@/assets/images/chart/charts/water_variable.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const VariableConfig: ConfigType = {
title: '折线面积图', title: '折线面积图',
category: ChatCategoryEnum.MORE, category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE, categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.CHARTS,
node: Variable, node: Variable,
image: image image: image
} }

View File

@ -1,6 +1,6 @@
import PieCommon from './index.vue' import PieCommon from './index.vue'
import image from '@/assets/images/chart/charts/pie.png' import image from '@/assets/images/chart/charts/pie.png'
import { ConfigType } 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 PieCommonConfig: ConfigType = { export const PieCommonConfig: ConfigType = {
@ -8,6 +8,7 @@ export const PieCommonConfig: ConfigType = {
title: '计量图', title: '计量图',
category: ChatCategoryEnum.PIE, category: ChatCategoryEnum.PIE,
categoryName: ChatCategoryEnumName.PIE, categoryName: ChatCategoryEnumName.PIE,
package: PackagesCategoryEnum.CHARTS,
node: PieCommon, node: PieCommon,
image image
} }

View File

@ -1,9 +1,9 @@
export enum ChatCategoryEnum { export enum ChatCategoryEnum {
BAR = 'bar', BAR = 'Bars',
PIE = 'pie', PIE = 'Pies',
LINE = 'line', LINE = 'Lines',
MAP = 'map', MAP = 'Maps',
MORE = 'more' MORE = 'Mores'
} }
export enum ChatCategoryEnumName { export enum ChatCategoryEnumName {

View File

@ -1,6 +1,6 @@
import BorderCommon from './index.vue' import BorderCommon from './index.vue'
import image from '@/assets/images/chart/decorates/border.png' import image from '@/assets/images/chart/decorates/border.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const BorderCommonConfig: ConfigType = {
title: '边框', title: '边框',
category: ChatCategoryEnum.BORDER, category: ChatCategoryEnum.BORDER,
categoryName: ChatCategoryEnumName.BORDER, categoryName: ChatCategoryEnumName.BORDER,
package: PackagesCategoryEnum.DECORATES,
node: BorderCommon, node: BorderCommon,
image image
} }

View File

@ -1,6 +1,6 @@
import Number from './index.vue' import Number from './index.vue'
import image from '@/assets/images/chart/decorates/number.png' import image from '@/assets/images/chart/decorates/number.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const NumberConfig: ConfigType = {
title: '数字翻牌', title: '数字翻牌',
category: ChatCategoryEnum.MORE, category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE, categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.DECORATES,
node: Number, node: Number,
image image
} }

View File

@ -1,6 +1,6 @@
import Time from './index.vue' import Time from './index.vue'
import image from '@/assets/images/chart/decorates/time.png' import image from '@/assets/images/chart/decorates/time.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const TimeConfig: ConfigType = {
title: '时间', title: '时间',
category: ChatCategoryEnum.MORE, category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE, categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.DECORATES,
node: Time, node: Time,
image image
} }

View File

@ -1,6 +1,6 @@
import Weather from './index.vue' import Weather from './index.vue'
import image from '@/assets/images/chart/decorates/weather.png' import image from '@/assets/images/chart/decorates/weather.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const WeatherConfig: ConfigType = {
title: '天气', title: '天气',
category: ChatCategoryEnum.MORE, category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE, categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.DECORATES,
node: Weather, node: Weather,
image image
} }

View File

@ -1,6 +1,6 @@
import WeatherTime from './index.vue' import WeatherTime from './index.vue'
import image from '@/assets/images/chart/decorates/weather_time.png' import image from '@/assets/images/chart/decorates/weather_time.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const WeatherTimeConfig: ConfigType = {
title: '天气和时间', title: '天气和时间',
category: ChatCategoryEnum.MORE, category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE, categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.DECORATES,
node: WeatherTime, node: WeatherTime,
image image
} }

View File

@ -1,6 +1,6 @@
export enum ChatCategoryEnum { export enum ChatCategoryEnum {
BORDER = 'BORDER', BORDER = 'Borders',
MORE = 'MORE' MORE = 'Mores'
} }
export enum ChatCategoryEnumName { export enum ChatCategoryEnumName {

View File

@ -1,6 +1,6 @@
import Image from './index.vue' import Image from './index.vue'
import image from '@/assets/images/chart/informations/photo.png' import image from '@/assets/images/chart/informations/photo.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const ImageConfig: ConfigType = {
title: '图片', title: '图片',
category: ChatCategoryEnum.MORE, category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE, categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.INFORMATION,
node: Image, node: Image,
image image
} }

View File

@ -1,6 +1,6 @@
import TextCloud from './index.vue' import TextCloud from './index.vue'
import image from '@/assets/images/chart/informations/words_cloud.png' import image from '@/assets/images/chart/informations/words_cloud.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const TextCloudConfig: ConfigType = {
title: '词云', title: '词云',
category: ChatCategoryEnum.MORE, category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE, categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.INFORMATION,
node: TextCloud, node: TextCloud,
image image
} }

View File

@ -1,6 +1,6 @@
import TextCommon from './index.vue' import TextCommon from './index.vue'
import image from '@/assets/images/chart/informations/text_static.png' import image from '@/assets/images/chart/informations/text_static.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const TextCommonConfig: ConfigType = {
title: '文字', title: '文字',
category: ChatCategoryEnum.TEXT, category: ChatCategoryEnum.TEXT,
categoryName: ChatCategoryEnumName.TEXT, categoryName: ChatCategoryEnumName.TEXT,
package: PackagesCategoryEnum.INFORMATION,
node: TextCommon, node: TextCommon,
image image
} }

View File

@ -1,6 +1,6 @@
import TitleBevelAngle from './index.vue' import TitleBevelAngle from './index.vue'
import image from '@/assets/images/chart/informations/title_diamond2.png' import image from '@/assets/images/chart/informations/title_diamond2.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const TitleBevelAngleConfig: ConfigType = {
title: '斜角标题', title: '斜角标题',
category: ChatCategoryEnum.TITLE, category: ChatCategoryEnum.TITLE,
categoryName: ChatCategoryEnumName.TITLE, categoryName: ChatCategoryEnumName.TITLE,
package: PackagesCategoryEnum.INFORMATION,
node: TitleBevelAngle, node: TitleBevelAngle,
image image
} }

View File

@ -1,6 +1,6 @@
import TitleCommon from './index.vue' import TitleCommon from './index.vue'
import image from '@/assets/images/chart/informations/title_diamond.png' import image from '@/assets/images/chart/informations/title_diamond.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const TitleCommonConfig: ConfigType = {
title: '普通标题', title: '普通标题',
category: ChatCategoryEnum.TITLE, category: ChatCategoryEnum.TITLE,
categoryName: ChatCategoryEnumName.TITLE, categoryName: ChatCategoryEnumName.TITLE,
package: PackagesCategoryEnum.INFORMATION,
node: TitleCommon, node: TitleCommon,
image image
} }

View File

@ -1,6 +1,6 @@
import TitlePro from './index.vue' import TitlePro from './index.vue'
import image from '@/assets/images/chart/informations/title_main.png' import image from '@/assets/images/chart/informations/title_main.png'
import { ConfigType } 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 = {
@ -8,6 +8,7 @@ export const TitleProConfig: ConfigType = {
title: '中心标题', title: '中心标题',
category: ChatCategoryEnum.TITLE, category: ChatCategoryEnum.TITLE,
categoryName: ChatCategoryEnumName.TITLE, categoryName: ChatCategoryEnumName.TITLE,
package: PackagesCategoryEnum.INFORMATION,
node: TitlePro, node: TitlePro,
image image
} }

View File

@ -1,7 +1,7 @@
export enum ChatCategoryEnum { export enum ChatCategoryEnum {
TEXT = 'TEXT', TEXT = 'Texts',
TITLE = 'TITLE', TITLE = 'Titles',
MORE = 'MORE' MORE = 'Mores'
} }
export enum ChatCategoryEnumName { export enum ChatCategoryEnumName {

View File

@ -1,4 +0,0 @@
import { TableCommonConfig } from './TableCommon/index'
import { TableCategoryConfig } from './TableCategory/index'
export const TableList = [TableCommonConfig, TableCategoryConfig]

View File

@ -1,13 +1,14 @@
import TableCategory from './index.vue' import TableCategory from './index.vue'
import image from '@/assets/images/chart/Tables/tables_categary.png' import image from '@/assets/images/chart/Tables/tables_categary.png'
import { ConfigType } 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: 'VTableCategory',
title: '归类表格', title: '归类表格',
category: ChatCategoryEnum.TABLE, category: ChatCategoryEnum.TABLE,
categoryName: ChatCategoryEnumName.TABLE, categoryName: ChatCategoryEnumName.TABLE,
package: PackagesCategoryEnum.TABLES,
node: TableCategory, node: TableCategory,
image image
} }

View File

@ -0,0 +1,4 @@
import { TableCommonConfig } from './TableCommon'
import { TableCategoryConfig } from './TableCategory'
export default [TableCommonConfig, TableCategoryConfig]

View File

@ -1,13 +1,14 @@
import TableCommon from './index.vue' import TableCommon from './index.vue'
import image from '@/assets/images/chart/Tables/tables.png' import image from '@/assets/images/chart/Tables/tables.png'
import { ConfigType } 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: 'VTableCommon',
title: '表格', title: '表格',
category: ChatCategoryEnum.TABLE, category: ChatCategoryEnum.TABLE,
categoryName: ChatCategoryEnumName.TABLE, categoryName: ChatCategoryEnumName.TABLE,
package: PackagesCategoryEnum.TABLES,
node: TableCommon, node: TableCommon,
image image
} }

View File

@ -0,0 +1,3 @@
import Tables from './Tables'
export const TableList = [...Tables]

View File

@ -6,16 +6,17 @@ export type ConfigType = {
title: string title: string
category: string category: string
categoryName: string categoryName: string
package: string
node: Component node: Component
image: string | (() => Promise<typeof import('*.png')>) image: string | (() => Promise<typeof import('*.png')>)
[T: string]: unknown [T: string]: unknown
} }
export enum PackagesCategoryEnum { export enum PackagesCategoryEnum {
CHARTS = 'CHARTS', CHARTS = 'Charts',
TABLES = 'TABLES', TABLES = 'Tables',
INFORMATION = 'INFORMATION', INFORMATION = 'Informations',
DECORATES = 'DECORATES', DECORATES = 'Decorates',
} }
export enum PackagesCategoryName { export enum PackagesCategoryName {

View File

@ -4,10 +4,10 @@ import {
PackagesType, PackagesType,
ConfigType ConfigType
} from '@/packages/index.d' } from '@/packages/index.d'
import { ChartList } from '@/packages/components/Chart/index' import { ChartList } from '@/packages/components/Charts/index'
import { DecorateList } from '@/packages/components/Decorate/index' import { DecorateList } from '@/packages/components/Decorates/index'
import { InformationList } from '@/packages/components/Information/index' import { InformationList } from '@/packages/components/Informations/index'
import { TableList } from '@/packages/components/Table/index' import { TableList } from '@/packages/components/Tables/index'
import {} from './useCreate' import {} from './useCreate'
// 所有图表 // 所有图表

View File

@ -1,9 +1,10 @@
import { ConfigType } from '@/packages/index.d' import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
/** /**
* * * *
* @param drayData * @param drayData
*/ */
export const createComponent = (drayData: Exclude<ConfigType, 'node'>) => { export const createComponent = async (drayData: Exclude<ConfigType, 'node'>) => {
const chart = await import(`./${drayData.categoryName}`)
return new chart()
} }

View File

@ -34,7 +34,7 @@
</n-icon> </n-icon>
</n-button> </n-button>
</template> </template>
<span>点击{{ lockScale ? '解锁' : '锁定' }}当前缩放比例</span> <span>{{ lockScale ? '解锁' : '锁定' }}当前比例</span>
</n-tooltip> </n-tooltip>
<!-- 拖动 --> <!-- 拖动 -->