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
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}