fix: 修改左侧图表列表的中文键名问题

This commit is contained in:
MTrun
2022-01-18 21:41:52 +08:00
parent e1bb655bf1
commit c1bbc83acd
41 changed files with 103 additions and 73 deletions
@@ -1,12 +1,13 @@
import BarCommon from './index.vue'
import image from '@/assets/images/chart/charts/bar_x.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
export const BarCommonConfig: ConfigType = {
key: 'VBarCommon',
title: '柱状图',
category: ChatCategoryEnum.BAR,
categoryName: ChatCategoryEnumName.BAR,
node: BarCommon,
image: image
}
@@ -1,12 +1,13 @@
import BarCrossrange from './index.vue'
import image from '@/assets/images/chart/charts/bar_y.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
export const BarCrossrangefig: ConfigType = {
key: 'VBarCrossrange',
title: '横向柱状图',
category: ChatCategoryEnum.BAR,
categoryName: ChatCategoryEnumName.BAR,
node: BarCrossrange,
image: image
}
@@ -1,12 +1,13 @@
import LineCommon from './index.vue'
import image from '@/assets/images/chart/charts/line.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
export const LineCommonConfig: ConfigType = {
key: 'VLineCommon',
title: '折线图',
category: ChatCategoryEnum.LINE,
categoryName: ChatCategoryEnumName.LINE,
node: LineCommon,
image: image
}
@@ -1,12 +1,13 @@
import LineGradientSingle from './index.vue'
import image from '@/assets/images/chart/charts/line_gradient_single.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
export const LineGradientSingleConfig: ConfigType = {
key: 'VLineGradientSingle',
title: '折线面积图',
category: ChatCategoryEnum.LINE,
categoryName: ChatCategoryEnumName.LINE,
node: LineGradientSingle,
image: image
}
@@ -1,12 +1,13 @@
import LineGradients from './index.vue'
import image from '@/assets/images/chart/charts/line_gradient2.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
export const LineGradientsConfig: ConfigType = {
key: 'VLineGradientSingle',
title: '折线面积图',
category: ChatCategoryEnum.LINE,
categoryName: ChatCategoryEnumName.LINE,
node: LineGradients,
image: image
}
@@ -1,12 +1,13 @@
import MapChine from './index.vue'
import image from '@/assets/images/chart/charts/map.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
export const MapChineConfig: ConfigType = {
key: 'VMapChine',
title: '北京地图',
category: ChatCategoryEnum.MAP,
categoryName: ChatCategoryEnumName.MAP,
node: MapChine,
image: image
}
@@ -1,12 +1,13 @@
import Funnel from './index.vue'
import image from '@/assets/images/chart/charts/funnel.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
export const FunnelConfig: ConfigType = {
key: 'VFunnel',
title: '漏斗图',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
node: Funnel,
image: image
}
@@ -1,12 +1,13 @@
import Heatmap from './index.vue'
import image from '@/assets/images/chart/charts/heatmap.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
export const HeatmapConfig: ConfigType = {
key: 'VHeatmap',
title: '热力图',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
node: Heatmap,
image: image
}
@@ -1,12 +1,13 @@
import Point from './index.vue'
import image from '@/assets/images/chart/charts/Point.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
export const PointConfig: ConfigType = {
key: 'VPoint',
title: '热力图',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
node: Point,
image: image
}
@@ -1,12 +1,13 @@
import Radar from './index.vue'
import image from '@/assets/images/chart/charts/radar.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
export const RadarConfig: ConfigType = {
key: 'VRadar',
title: '雷达',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
node: Radar,
image: image
}
@@ -1,12 +1,13 @@
import TreeMap from './index.vue'
import image from '@/assets/images/chart/charts/tree_map.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
export const TreeMapConfig: ConfigType = {
key: 'VTreeMap',
title: '树形分布',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
node: TreeMap,
image: image
}
@@ -1,12 +1,13 @@
import Variable from './index.vue'
import image from '@/assets/images/chart/charts/water_variable.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
export const VariableConfig: ConfigType = {
key: 'VVariable',
title: '折线面积图',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
node: Variable,
image: image
}
@@ -1,12 +1,13 @@
import PieCommon from './index.vue'
import image from '@/assets/images/chart/charts/pie.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
export const PieCommonConfig: ConfigType = {
key: 'VPieCommon',
title: '计量图',
category: ChatCategoryEnum.PIE,
categoryName: ChatCategoryEnumName.PIE,
node: PieCommon,
image
}
+10 -2
View File
@@ -1,7 +1,15 @@
export enum ChatCategoryEnum {
BAR = 'bar',
PIE = 'pie',
LINE = 'line',
MAP = 'map',
MORE = 'more'
}
export enum ChatCategoryEnumName {
BAR = '柱状图',
PIE = '饼图',
LINE = '折线图',
MORE = '更多',
MAP = '地图'
MAP = '地图',
MORE = '更多'
}
@@ -1,12 +1,13 @@
import Number from './index.vue'
import image from '@/assets/images/chart/decorates/number.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const NumberConfig: ConfigType = {
key: 'VNumber',
title: '数字翻牌',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
node: Number,
image
}
@@ -1,12 +1,13 @@
import Time from './index.vue'
import image from '@/assets/images/chart/decorates/time.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const TimeConfig: ConfigType = {
key: 'VTime',
title: '时间',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
node: Time,
image
}
@@ -1,12 +1,13 @@
import Weather from './index.vue'
import image from '@/assets/images/chart/decorates/weather.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const WeatherConfig: ConfigType = {
key: 'VWeather',
title: '天气',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
node: Weather,
image
}
@@ -1,12 +1,13 @@
import WeatherTime from './index.vue'
import image from '@/assets/images/chart/decorates/weather_time.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const WeatherTimeConfig: ConfigType = {
key: 'VWeatherTime',
title: '天气和时间',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
node: WeatherTime,
image
}
@@ -1,12 +1,13 @@
import BorderCommon from './index.vue'
import image from '@/assets/images/chart/decorates/border.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const BorderCommonConfig: ConfigType = {
key: 'VBorderCommon',
title: '边框',
category: ChatCategoryEnum.BORDER,
categoryName: ChatCategoryEnumName.BORDER,
node: BorderCommon,
image
}
+5
View File
@@ -1,4 +1,9 @@
export enum ChatCategoryEnum {
BORDER = 'BORDER',
MORE = 'MORE'
}
export enum ChatCategoryEnumName {
BORDER = '边框',
MORE = '更多'
}
@@ -1,12 +1,13 @@
import Image from './index.vue'
import image from '@/assets/images/chart/informations/photo.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const ImageConfig: ConfigType = {
key: 'VImage',
title: '图片',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
node: Image,
image
}
@@ -1,12 +1,13 @@
import TextCloud from './index.vue'
import image from '@/assets/images/chart/informations/words_cloud.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const TextCloudConfig: ConfigType = {
key: 'VTextCloud',
title: '词云',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
node: TextCloud,
image
}
@@ -1,12 +1,13 @@
import TextCommon from './index.vue'
import image from '@/assets/images/chart/informations/text_static.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const TextCommonConfig: ConfigType = {
key: 'VText',
title: '文字',
category: ChatCategoryEnum.TEXT,
categoryName: ChatCategoryEnumName.TEXT,
node: TextCommon,
image
}
@@ -1,12 +1,13 @@
import TitleBevelAngle from './index.vue'
import image from '@/assets/images/chart/informations/title_diamond2.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const TitleBevelAngleConfig: ConfigType = {
key: 'VTitleBevelAngle',
title: '斜角标题',
category: ChatCategoryEnum.TITLE,
categoryName: ChatCategoryEnumName.TITLE,
node: TitleBevelAngle,
image
}
@@ -1,12 +1,13 @@
import TitleCommon from './index.vue'
import image from '@/assets/images/chart/informations/title_diamond.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const TitleCommonConfig: ConfigType = {
key: 'VText',
title: '普通标题',
category: ChatCategoryEnum.TITLE,
categoryName: ChatCategoryEnumName.TITLE,
node: TitleCommon,
image
}
@@ -1,12 +1,13 @@
import TitlePro from './index.vue'
import image from '@/assets/images/chart/informations/title_main.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const TitleProConfig: ConfigType = {
key: 'VTitlePro',
title: '中心标题',
category: ChatCategoryEnum.TITLE,
categoryName: ChatCategoryEnumName.TITLE,
node: TitlePro,
image
}
+6
View File
@@ -1,4 +1,10 @@
export enum ChatCategoryEnum {
TEXT = 'TEXT',
TITLE = 'TITLE',
MORE = 'MORE'
}
export enum ChatCategoryEnumName {
TEXT = '文本',
TITLE = '标题',
MORE = '更多'
@@ -1,12 +1,13 @@
import TableCategory from './index.vue'
import image from '@/assets/images/chart/Tables/tables_categary.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../index.d'
export const TableCategoryConfig: ConfigType = {
key: 'VTableCategory',
title: '归类表格',
category: ChatCategoryEnum.table,
category: ChatCategoryEnum.TABLE,
categoryName: ChatCategoryEnumName.TABLE,
node: TableCategory,
image
}
+7
View File
@@ -0,0 +1,7 @@
export enum ChatCategoryEnum {
TABLE = 'TABLE',
}
export enum ChatCategoryEnumName {
TABLE = '表格',
}
@@ -1,12 +1,13 @@
import TableCommon from './index.vue'
import image from '@/assets/images/chart/Tables/tables.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../index.d'
export const TableCommonConfig: ConfigType = {
key: 'VTableCommon',
title: '表格',
category: ChatCategoryEnum.table,
category: ChatCategoryEnum.TABLE,
categoryName: ChatCategoryEnumName.TABLE,
node: TableCommon,
image
}
-3
View File
@@ -1,3 +0,0 @@
export enum ChatCategoryEnum {
table = '表格',
}