feat: 新增chart组件数据内容

This commit is contained in:
MTrun
2022-01-14 16:17:14 +08:00
parent 75fb327d7e
commit 0a75035339
32 changed files with 493 additions and 187 deletions
@@ -0,0 +1,11 @@
import barCommon from './index.vue'
import barImg from '@/assets/images/chart/bar_y.png'
import { ConfigType } from '@/packages/index.d'
// 柱状图
export const barCommonConfig: ConfigType = {
key: 'Bar',
title: '基础',
node: barCommon,
image: barImg
}
@@ -0,0 +1,13 @@
<template>
<div>
柱状图组件渲染
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
+3
View File
@@ -0,0 +1,3 @@
import { barCommonConfig } from './bar/barCommon/index'
export const BarList = [barCommonConfig]
@@ -0,0 +1,11 @@
import BorderCommon from './index.vue'
import barImg from '@/assets/images/chart/bar_y.png'
import { ConfigType } from '@/packages/index.d'
// 柱状图
export const barCommonConfig: ConfigType = {
key: 'Border',
title: '柱状图',
node: BorderCommon,
coverGraph: barImg
}
@@ -0,0 +1,13 @@
<template>
<div>
柱状图组件渲染
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
@@ -0,0 +1,3 @@
import { barCommonConfig } from './border/borderCommon/index'
export const BarList = [barCommonConfig]
+14
View File
@@ -0,0 +1,14 @@
import { Component } from '@/router/types'
// import { ConfigType } from '@/packages/index.d'
export type ConfigType = {
key: string
title: string
node: Component
image: string
[T: string]: unknown
}
export type PackagesType = {
Charts: ConfigType[]
}
+9
View File
@@ -0,0 +1,9 @@
import { PackagesType } from '@/packages/index.d'
import { BarList } from '@/packages/components/Chart/index'
// 所有图表
let packagesList: PackagesType = {
Charts: BarList
}
export { packagesList }