feat: 新增左侧图表数据

This commit is contained in:
mtruning
2022-01-15 21:05:11 +08:00
parent 551a1f2d01
commit cb7a8298ec
38 changed files with 249 additions and 38 deletions
@@ -1,12 +1,12 @@
import barCommon from './index.vue'
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'
export const barCommonConfig: ConfigType = {
export const BarCommonConfig: ConfigType = {
key: 'BarCommon',
title: '基础',
title: '柱状图',
category: ChatCategoryEnum.BAR,
node: barCommon,
node: BarCommon,
image: image
}
@@ -0,0 +1,12 @@
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'
export const BarCrossrangefig: ConfigType = {
key: 'BarCrossrange',
title: '横向柱状图',
category: ChatCategoryEnum.BAR,
node: BarCrossrange,
image: image
}
@@ -0,0 +1,13 @@
<template>
<div>
柱状图组件渲染
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
+3 -2
View File
@@ -1,3 +1,4 @@
import { barCommonConfig } from './BarCommon/index'
import { BarCommonConfig } from './BarCommon/index'
import { BarCrossrangefig } from './BarCrossrange/index'
export default [barCommonConfig]
export default [BarCommonConfig, BarCrossrangefig]
@@ -0,0 +1,12 @@
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'
export const LineCommonConfig: ConfigType = {
key: 'LineCommon',
title: '折线图',
category: ChatCategoryEnum.LINE,
node: LineCommon,
image: image
}
@@ -0,0 +1,13 @@
<template>
<div>
line组件渲染
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
@@ -0,0 +1,12 @@
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'
export const LineGradientSingleConfig: ConfigType = {
key: 'LineGradientSingle',
title: '折线面积图',
category: ChatCategoryEnum.LINE,
node: LineGradientSingle,
image: image
}
@@ -0,0 +1,13 @@
<template>
<div>
line组件渲染
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
@@ -0,0 +1,12 @@
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'
export const LineGradientsConfig: ConfigType = {
key: 'LineGradientSingle',
title: '折线面积图',
category: ChatCategoryEnum.LINE,
node: LineGradients,
image: image
}
@@ -0,0 +1,13 @@
<template>
<div>
line组件渲染
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
@@ -0,0 +1,5 @@
import { LineCommonConfig } from './LineCommon/index'
import { LineGradientSingleConfig } from './LineGradientSingle/index'
import { LineGradientsConfig } from './LineGradients/index'
export default [LineCommonConfig, LineGradientSingleConfig, LineGradientsConfig]
@@ -0,0 +1,12 @@
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'
export const VariableConfig: ConfigType = {
key: 'Variable',
title: '折线面积图',
category: ChatCategoryEnum.MORE,
node: Variable,
image: image
}
@@ -0,0 +1,13 @@
<template>
<div>
水波
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
@@ -0,0 +1,3 @@
import { VariableConfig } from './Variable/index'
export default [VariableConfig,]
@@ -1,12 +1,12 @@
import node from './index.vue'
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'
export const pieCommonConfig: ConfigType = {
export const PieCommonConfig: ConfigType = {
key: 'PieCommon',
title: '图',
title: '计量图',
category: ChatCategoryEnum.PIE,
node: node,
node: PieCommon,
image
}
+2 -2
View File
@@ -1,3 +1,3 @@
import { pieCommonConfig } from './PieCommon/index'
import { PieCommonConfig } from './PieCommon/index'
export default [pieCommonConfig]
export default [PieCommonConfig]
+3 -1
View File
@@ -1,4 +1,6 @@
export enum ChatCategoryEnum {
BAR = '柱状图',
PIE = '饼图'
PIE = '饼图',
LINE = '折线图',
MORE = '更多'
}
+5 -3
View File
@@ -1,4 +1,6 @@
import Bar from './Bars'
import Pie from './Pies'
import Bars from './Bars'
import Pies from './Pies'
import Lines from './Lines'
import Mores from './Mores'
export const ChartList = [...Bar, ...Pie]
export const ChartList = [...Bars, ...Pies, ...Lines, ...Mores]