feat:新增图表

This commit is contained in:
mtruning
2022-01-15 21:54:04 +08:00
parent 81881a8ed4
commit 5843388d0b
30 changed files with 234 additions and 29 deletions
@@ -0,0 +1,12 @@
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'
export const TextCloudConfig: ConfigType = {
key: 'TextCloud',
title: '词云',
category: ChatCategoryEnum.MORE,
node: TextCloud,
image
}
@@ -0,0 +1,13 @@
<template>
<div>
词云
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
@@ -0,0 +1,3 @@
import { TextCloudConfig } from './TextCloud/index'
export default [TextCloudConfig]
@@ -0,0 +1,12 @@
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'
export const TitleBevelAngleConfig: ConfigType = {
key: 'TitleBevelAngle',
title: '斜角标题',
category: ChatCategoryEnum.TITLE,
node: TitleBevelAngle,
image
}
@@ -0,0 +1,13 @@
<template>
<div>
标题
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
@@ -5,8 +5,8 @@ import { ChatCategoryEnum } from '../../index.d'
export const TitleCommonConfig: ConfigType = {
key: 'Text',
title: '标题',
title: '普通标题',
category: ChatCategoryEnum.TITLE,
node: TitleCommon,
image
}
}
@@ -0,0 +1,12 @@
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'
export const TitleProConfig: ConfigType = {
key: 'TitlePro',
title: '中心标题',
category: ChatCategoryEnum.TITLE,
node: TitlePro,
image
}
@@ -0,0 +1,13 @@
<template>
<div>
标题
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
@@ -1,3 +1,5 @@
import { TitleCommonConfig } from './TitleCommon/index'
import { TitleProConfig } from './TitlePro/index'
import { TitleBevelAngleConfig } from './TitleBevelAngle/index'
export default [TitleCommonConfig]
export default [TitleProConfig, TitleCommonConfig, TitleBevelAngleConfig]
+2 -1
View File
@@ -1,4 +1,5 @@
export enum ChatCategoryEnum {
TEXT = '文本',
TITLE = '标题'
TITLE = '标题',
MORE = '更多'
}
+2 -1
View File
@@ -1,4 +1,5 @@
import Texts from './Texts'
import Titles from './Titles'
import Mores from './Mores'
export const InformationList = [...Texts, ...Titles]
export const InformationList = [...Texts, ...Titles, ...Mores]