mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 新增左侧图表数据
This commit is contained in:
@@ -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>
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import { pieCommonConfig } from './PieCommon/index'
|
||||
import { PieCommonConfig } from './PieCommon/index'
|
||||
|
||||
export default [pieCommonConfig]
|
||||
export default [PieCommonConfig]
|
||||
+3
-1
@@ -1,4 +1,6 @@
|
||||
export enum ChatCategoryEnum {
|
||||
BAR = '柱状图',
|
||||
PIE = '饼图'
|
||||
PIE = '饼图',
|
||||
LINE = '折线图',
|
||||
MORE = '更多'
|
||||
}
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user