feat: 新增左侧图表数据

This commit is contained in:
mtruning
2022-01-15 21:05:11 +08:00
parent 4bf319dcb4
commit 81881a8ed4
38 changed files with 249 additions and 38 deletions
@@ -3,10 +3,10 @@ import image from '@/assets/images/chart/informations/text_static.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
export const textCommonConfig: ConfigType = {
export const TextCommonConfig: ConfigType = {
key: 'Text',
title: '文字',
category: ChatCategoryEnum.text,
category: ChatCategoryEnum.TEXT,
node: TextCommon,
image
}
@@ -1,3 +1,3 @@
import { textCommonConfig } from './TextCommon/index'
import { TextCommonConfig } from './TextCommon/index'
export default [textCommonConfig]
export default [TextCommonConfig]
@@ -0,0 +1,12 @@
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'
export const TitleCommonConfig: ConfigType = {
key: 'Text',
title: '标题',
category: ChatCategoryEnum.TITLE,
node: TitleCommon,
image
}
@@ -0,0 +1,13 @@
<template>
<div>
标题
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
@@ -0,0 +1,3 @@
import { TitleCommonConfig } from './TitleCommon/index'
export default [TitleCommonConfig]
+2 -1
View File
@@ -1,3 +1,4 @@
export enum ChatCategoryEnum {
text = '文本',
TEXT = '文本',
TITLE = '标题'
}
+2 -1
View File
@@ -1,3 +1,4 @@
import Texts from './Texts'
import Titles from './Titles'
export const InformationList = [...Texts]
export const InformationList = [...Texts, ...Titles]