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]
|
||||
|
||||
@@ -3,8 +3,8 @@ import image from '@/assets/images/chart/decorates/border.png'
|
||||
import { ConfigType } from '@/packages/index.d'
|
||||
import { ChatCategoryEnum } from '../../index.d'
|
||||
|
||||
export const borderCommonConfig: ConfigType = {
|
||||
key: 'Border',
|
||||
export const BorderCommonConfig: ConfigType = {
|
||||
key: 'BorderCommon',
|
||||
title: '边框',
|
||||
category: ChatCategoryEnum.Border,
|
||||
node: BorderCommon,
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import { borderCommonConfig } from './BorderCommon/index'
|
||||
import { BorderCommonConfig } from './BorderCommon/index'
|
||||
|
||||
export default [borderCommonConfig]
|
||||
export default [BorderCommonConfig]
|
||||
|
||||
@@ -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
@@ -1,3 +1,4 @@
|
||||
export enum ChatCategoryEnum {
|
||||
text = '文本',
|
||||
TEXT = '文本',
|
||||
TITLE = '标题'
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
import Texts from './Texts'
|
||||
import Titles from './Titles'
|
||||
|
||||
export const InformationList = [...Texts]
|
||||
export const InformationList = [...Texts, ...Titles]
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import TableCategory from './index.vue'
|
||||
import image from '@/assets/images/chart/Tables/tables_categary.png'
|
||||
import { ConfigType } from '@/packages/index.d'
|
||||
import { ChatCategoryEnum } from '../index.d'
|
||||
|
||||
export const TableCategoryConfig: ConfigType = {
|
||||
key: 'TableCategory',
|
||||
title: '归类表格',
|
||||
category: ChatCategoryEnum.table,
|
||||
node: TableCategory,
|
||||
image
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div>
|
||||
表格
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
@@ -1,3 +1,4 @@
|
||||
import { tableCommonConfig } from './tableCommon/index'
|
||||
import { TableCommonConfig } from './TableCommon/index'
|
||||
import { TableCategoryConfig } from './TableCategory/index'
|
||||
|
||||
export const TableList = [tableCommonConfig]
|
||||
export const TableList = [TableCommonConfig, TableCategoryConfig]
|
||||
|
||||
@@ -3,8 +3,8 @@ import image from '@/assets/images/chart/Tables/tables.png'
|
||||
import { ConfigType } from '@/packages/index.d'
|
||||
import { ChatCategoryEnum } from '../index.d'
|
||||
|
||||
export const tableCommonConfig: ConfigType = {
|
||||
key: 'Border',
|
||||
export const TableCommonConfig: ConfigType = {
|
||||
key: 'TableCommon',
|
||||
title: '表格',
|
||||
category: ChatCategoryEnum.table,
|
||||
node: TableCommon,
|
||||
|
||||
Reference in New Issue
Block a user