mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 完成左侧列表的其余内容
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import node from './index.vue'
|
||||
import image from '@/assets/images/chart/pie.png'
|
||||
import image from '@/assets/images/chart/charts/pie.png'
|
||||
import { ConfigType } from '@/packages/index.d'
|
||||
import { ChatCategoryEnum } from '../../index.d'
|
||||
|
||||
@@ -8,5 +8,5 @@ export const pieCommonConfig: ConfigType = {
|
||||
title: '饼图',
|
||||
category: ChatCategoryEnum.PIE,
|
||||
node: node,
|
||||
image: image
|
||||
image
|
||||
}
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import barCommon from './index.vue'
|
||||
import image from '@/assets/images/chart/bar_y.png'
|
||||
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 = {
|
||||
key: 'BarCommon',
|
||||
title: '基础',
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import BorderCommon from './index.vue'
|
||||
import image from '@/assets/images/chart/static.png'
|
||||
import image from '@/assets/images/chart/decorates/border.png'
|
||||
import { ConfigType } from '@/packages/index.d'
|
||||
import { ChatCategoryEnum } from '../../index.d'
|
||||
|
||||
@@ -8,5 +8,5 @@ export const borderCommonConfig: ConfigType = {
|
||||
title: '边框',
|
||||
category: ChatCategoryEnum.Border,
|
||||
node: BorderCommon,
|
||||
image: image
|
||||
image
|
||||
}
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
export enum ChatCategoryEnum {
|
||||
Border = '边框',
|
||||
Title = '标题',
|
||||
Else = '其它'
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
import Border from './Border'
|
||||
import Border from './borders'
|
||||
|
||||
export const DecorateList = [...Border]
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export enum ChatCategoryEnum {
|
||||
text = '文本',
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import { textCommonConfig } from './textCommon/index'
|
||||
|
||||
export const InformationList = [textCommonConfig]
|
||||
@@ -0,0 +1,12 @@
|
||||
import TextCommon from './index.vue'
|
||||
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 = {
|
||||
key: 'Text',
|
||||
title: '文字',
|
||||
category: ChatCategoryEnum.text,
|
||||
node: TextCommon,
|
||||
image
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div>
|
||||
信息
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
export enum ChatCategoryEnum {
|
||||
table = '表格',
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import { tableCommonConfig } from './tableCommon/index'
|
||||
|
||||
export const TableList = [tableCommonConfig]
|
||||
@@ -0,0 +1,12 @@
|
||||
import TableCommon from './index.vue'
|
||||
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',
|
||||
title: '表格',
|
||||
category: ChatCategoryEnum.table,
|
||||
node: TableCommon,
|
||||
image
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div>
|
||||
表格
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
Vendored
+3
-3
@@ -6,7 +6,7 @@ export type ConfigType = {
|
||||
title: string
|
||||
category: string
|
||||
node: Component
|
||||
image: string
|
||||
image: string | (() => Promise<typeof import("*.png")>),
|
||||
[T: string]: unknown
|
||||
}
|
||||
|
||||
@@ -14,13 +14,13 @@ export type ConfigType = {
|
||||
export enum PackagesCategoryEnum {
|
||||
CHARTS = 'CHARTS',
|
||||
TABLES = 'TABLES',
|
||||
TEXTS = 'TEXTS',
|
||||
INFORMATION = 'INFORMATION',
|
||||
DECORATES = 'DECORATES'
|
||||
}
|
||||
|
||||
export type PackagesType = {
|
||||
[PackagesCategoryEnum.CHARTS]: ConfigType[]
|
||||
[PackagesCategoryEnum.TEXTS]: ConfigType[]
|
||||
[PackagesCategoryEnum.INFORMATION]: ConfigType[]
|
||||
[PackagesCategoryEnum.TABLES]: ConfigType[]
|
||||
[PackagesCategoryEnum.DECORATES]: ConfigType[]
|
||||
}
|
||||
@@ -1,13 +1,15 @@
|
||||
import { PackagesCategoryEnum, PackagesType } from '@/packages/index.d'
|
||||
import { ChartList } from '@/packages/components/Chart/index'
|
||||
import { DecorateList } from '@/packages/components/Decorate/index'
|
||||
import { InformationList } from '@/packages/components/Information/index'
|
||||
import { TableList } from '@/packages/components/Tables/index'
|
||||
|
||||
// 所有图表
|
||||
let packagesList: PackagesType = {
|
||||
[PackagesCategoryEnum.CHARTS]: ChartList,
|
||||
[PackagesCategoryEnum.TEXTS]: DecorateList,
|
||||
[PackagesCategoryEnum.TABLES]: DecorateList,
|
||||
[PackagesCategoryEnum.DECORATES]: DecorateList
|
||||
[PackagesCategoryEnum.INFORMATION]: InformationList,
|
||||
[PackagesCategoryEnum.TABLES]: TableList,
|
||||
[PackagesCategoryEnum.DECORATES]: DecorateList,
|
||||
}
|
||||
|
||||
export { packagesList }
|
||||
|
||||
Reference in New Issue
Block a user